SOAP envelope element

Source: Internet
Author: User

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>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.