Mandatory SOAP Required SOAP SOAP The above example asks for the price of Apple. Please note that the above A SOAP response should look something like this:
Body
element contains the actual SOAP message. 3.6.1. SOAP Body element ¶
Body
element can contain the actual SOAP message that is intended to be delivered to the final endpoint of the message.
Body
the immediate child element of an element can be a qualified namespace.Example ¶
<?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">
<soap:Body>
<m:GetPrice xmlns:m="http://www.w3schools.com/prices">
<m:Item>Apples</m:Item>
</m:GetPrice>
</soap:Body>
</soap:Envelope>
m:GetPrice
and
Item
elements are application-specific elements. They are not part of the SOAP standard.<?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">
<soap:Body>
<m:GetPriceResponse xmlns:m="http://www.w3schools.com/prices">
<m:Price>1.90</m:Price>
</m:GetPriceResponse>
</soap:Body>
</soap:Envelope>