SOAP Envelope element
The Envelope element of the mandatory SOAP is the root element of the SOAP message.
SOAP Envelope element
The required Envelope element of SOAP is the root element of the SOAP message. It defines an XML document as an 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
The 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 have an error and discard the message.
EncodingStyle attribute
The encodingStyle property of SOAP is used to define the data types used in the document. This attribute can appear in any SOAP element and is applied to the contents of the element and to all child elements of the element.
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>