SOAP Envelope Element
The mandatory SOAP Envelope element is the root element of a SOAP message.
The SOAP Envelope Element
The required SOAP Envelope element is the root element of a SOAP message. It
defines the XML document as a SOAP message.
Note the use of the xmlns:soap namespace. It should always have the value of:
http://www.w3.org/2001/12/soap-envelope
and it defines the Envelope as a
SOAP Envelope:
<?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>
|
The xmlns:soap Namespace
A SOAP message must always have an Envelope element associated with
the "http://www.w3.org/2001/12/soap-envelope" namespace.
If a different namespace is used, the application must generate an error
and discard the message.
The encodingStyle Attribute
The SOAP encodingStyle attribute is used to define the data types used in the
document. This attribute may appear on any SOAP element, and it will apply to that
element's contents and all child elements. A SOAP message has no default encoding.
Syntax
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>
|
|