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

SOAP Body Element

SOAP Body Element


The mandatory SOAP Body element contains the actual SOAP message.


SOAP Body Element

The required SOAP Body element may contain the actual SOAP message intended to be delivered to the final endpoint of the message.

The direct child elements of the SOAP Body element may be namespace-qualified.

Example

xmlns:soap="http://www.w3.org/2001/12/soap-envelope"

soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">

soap:Body

 

    Apples

 

The example above requests the price of an apple. Note that the m:GetPrice and Item elements above are application-specific elements; they are not part of the SOAP standard.

And a SOAP response should look like this:

xmlns:soap="http://www.w3.org/2001/12/soap-envelope"

soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">

soap:Body

 

    1.90