SOAP Body要素
SOAPボディ要素は、実際のSOAPメッセージを含んでいます。
SOAP Body要素
必須のSOAP Body要素は、メッセージの最終的なエンドポイントを意図する実際のSOAPメッセージを含んでいます。
SOAP Body要素の直接の子供要素は、namespace-qualified にできます。
例
<?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 と Item 要素は、アプリケーション仕様の要素であることに注意してください。SOAP名前空間の一部ではありません。
SOAP応答は、このように見なります:
<?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>
|
|