Latest web development tutorials

SOAP Envelope element

SOAP Envelope element is the mandatory use of the root element of a SOAP message.


SOAP Envelope element

The required SOAP Envelope element is the root element of a SOAP message. It can define the XML document as a SOAP message.

Examples

<?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 message must have the namespace "http://www.w3.org/2001/12/soap-envelope" a Envelope element associated with it.

If you use a different namespace, the application error and discard the message.


encodingStyle property

SOAP encodingStyle attribute for the data type definitions used in the document. This attribute may appear on any SOAP element, and it will apply to all sub-elements and element content of the element.

SOAP message is no default encoding.

grammar

soap:encodingStyle="URI"

Examples

<?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>