The envelope element of the forced soap is the root element of the SOAP message.
SOAP envelope element
The required SOAP envelope element is the root element of the SOAP message. It defines an XML document as a SOAP message.
Note xmlns: Use of the soap namespace. Its value should always be:
http://www.w3.org/2001/12/soap-envelope
And it can define encapsulation as soap encapsulation:
<?xml version="1.0"?><soap:Envelopexmlns: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 different namespaces are used, an error occurs in the application and the message is discarded.
Encodingstyle attributes
The encodingstyle attribute of soap is used to define the data type used in the document. This attribute can appear in any soap element and will be applied to the content of the element and all child elements of the element. No default encoding method is available for soap messages.
Syntax
soap:encodingStyle="URI"
Instance
<?xml version="1.0"?><soap:Envelopexmlns: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>