Interview Questions

What is SOAP Envelope?

SOAP Interview Questions and Answers


(Continued from previous question...)

What is SOAP Envelope?

The HTTP request body contains the SOAP request itself. This is wrapped in a SOAP envelope, which contains metadata important for understanding the request. The structure is as follows:

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://www.www.org/soap/envelope/"
SOAP-ENV:encodingStyle="http://www.www.org/soap/encoding/"
>
<!-- SOAP body goes here -->
</SOAP-ENV:Envelope>

The SOAP envelope is in the XML namespace prescribed by the specification: http://www.www.org/soap/envelope/.
The envelope must specify how to interpret the SOAP body. This is accomplished with the SOAP-ENV:encodingStyle attribute. The value is a URI indicating a specification for the structure of the body.

(Continued on next question...)

Other Interview Questions