SOAP Envelope Element
The mandatory SOAP Envelope element is the root element of the SOAP message.
SOAP Envelope Element
Required The SOAP Envelope element is the root element of the SOAP message. It defines XML documents as SOAP messages.
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
SOAP messages must have the same namespace as "http://www.w3.org/2001 /12/soap-envelope" an Envelope element associated with it.
If a different namespace is used, the application will error and discard this message.
encodingStyle attribute
SOAP's encodingStyle attribute is used to define the data type used in the document. This attribute can appear on any SOAP element and will be applied to the element's content and all of its child elements.
There is no default encoding for SOAP messages.
Grammar
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>