soap addressing code example

Example 1: advantages of soap

SOAP is both platform and language independent.
SOAP separates the encoding and communications
protocol from the runtime environment.
Web service can retrieve or receive a SOAP
user data from a remote service, and the
source’s platform information is completely
independent of each other.
Everything can generate XML, from Perl
scripts through C++ code to J2EE app servers.
It uses XML to send and receive messages.
It uses standard internet HTTP protocol.
SOAP runs over HTTP; it eliminates
firewall problems. When protocol HTTP
is used as the protocol binding, an
RPC call will be automatically assigned 
to an HTTP request, and the RPC response
will be assigned to an HTTP reply.
Compared to RMI, CORBA and DCOM, SOAP
is very easy to use.
SOAP acts as a protocol to move information 
in a distributed and decentralized environment.
SOAP is independent of the transport protocol
and can be used to coordinate different protocols.

Example 2: functionalities of soap protocol class

--Call: A class which provides the main
functionality for a remote method for 
which a call is needed. It is used to 
create the call() and to specify the 
encoding style of the registry that 
will be assigned when if necessary.
This call() function is used by the
RPC call, which represents the options 
of the call object.
--Deployment Descriptor: A class used to
provide the information about the SOAP services.
It enables easy deployment without the
need for other approaches.
--DOM2 Writer: A class that serializes
and uses DOM node as XML string to
provide more functionalities.
RPC Message: A class used as the base 
class that calls and replies to the
request submitted to the server.
Service Manager: A class that provides,
lists and then outputs all SOAP services.

Tags:

Misc Example