SOAP Envelope
Element
The mandatory SOAP Envelope element is the root element of a SOAP message.
SOAP Envelope Element
The required SOAP Envelope element is the root element of a SOAP message. It defines an XML document as a SOAP message.
Example
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
...
Message information goes here
...
</soap:Envelope>
xmlns:soap Namespace
A SOAP message must have an Envelope element associated with the namespace "http://www.w3.org/2001/12/soap-envelope".
If a different namespace is used, the application will encounter an error and discard the message.
encodingStyle Attribute
The SOAP encodingStyle attribute is used to define the data types used in the document. This attribute can appear in any SOAP element and is applied to the element's content and all its child elements.
There is no default encoding style for SOAP messages.
Syntax
soap:encodingStyle="URI"
Example
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
...
Message information goes here
...
</soap:Envelope>