Understanding SOAP Message and Delivery StructureAs we know, SOAP is a XML based communication protocol, or a specification which enables exchange of messages between applications residing on remote systems. A SOAP message consists of three parts: Envelope
Among these three, envelope and body are the required part of a SOAP message while header is an optional part. Envelope contains both header and body. Besides transmitting text data SOAP message also contains metadata written in XML. It is contained in the header part. This metadata enclosed some instructions or information which is used in transmitting SOAP message. As mentioned above header is the optional part. Body contains
the actual text to be transmitted. In addition to these three parts body
has sub element called fault which reports error and carry
status information of message. <soap:envelope> The SOAP message can be request type or response type. The system which generates the SOAP message is called the requestor while the one which responds to the request is called receiver. In the process of transmitting SOAP message between requestor and receiver it might also get processed by intermediate systems which are referred as SOAP nodes. A SOAP node can transmit, process or relay the SOAP message. The processing done on a SOAP message by a SOAP node is known as SOAP actor. SOAP request
message body contains the name of the remote system to which it is meant
to transmit and the input parameters. Similarly response message body
has the name of remote system and the output parameter generated in response
to the requestor.
|