Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

SOAP Envelope Element

SOAP Envelope Element


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


SOAP Envelope Element

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

Example







  ...

  Message information goes here

  ...




The xmlns:soap Namespace

A 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 raise 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 in any SOAP element and applies to the element's content and all of its child elements.

A SOAP message has no default encoding scheme.

Syntax



soap:encodingStyle="URI"

Example







  ...

  Message information goes here

  ...