SOAP Envelope
Jakob Jenkov |
The SOAP Envelope
element is the root element in a SOAP message. Inside the SOAP Envelope
you find a Header
(optional) and a Body
element.
Here is a sample SOAP Envelope element (Envelope element marked in bold):
<?xml version="1.0"?> <env:Envelope xmlns:env="http://www.w3.org/2002/06/soap-envelope" > <env:Header> </env:Header> <env:Body> </env:Body> </env:Envelope>
Notice the env
name space declaration inside the Envelope element:
xmlns:env="http://www.w3.org/2002/06/soap-envelope"
This name space declaration must always be present in a SOAP Envelope element. The prefix (env
)
can change as you see fit.
Next: SOAP Header
Tweet | |
Jakob Jenkov |