The SOAP Body Element
来源:互联网 发布:无锡百度推广seo 编辑:程序博客网 时间:2024/06/05 15:15
The SOAP Body element contains the actual SOAP message.
The SOAP Body Element
The required SOAP Body element contains the actual SOAP message intended for the ultimate endpoint of the message.
Immediate child elements of the SOAP Body element may be namespace-qualified.
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>
<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>
The example above requests the price of apples. Note that the m:GetPrice and the Item elements above are application-specific elements. They are not a part of the SOAP namespace.
A SOAP response could look something like this:
<?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>
<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>
- The SOAP Body Element
- SOAP Body Element
- SOAP Body
- SOAP Body 元素
- [WebService] the namespace on the "definitions" element, is not a valid SOAP version
- "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP
- "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP
- Soap: The root element is required in a well-formed document.
- ORGANS OF THE BODY
- <html> vs. <body> element in css
- Missing operation for soapAction and body element
- Using the SOAP Monitor
- The Most Important Body Part
- The most important part of the body
- the finite element method
- The <schema> Element
- window、document、html、body、element的事件属性比较
- Element.scrollTop以及documentElement与body之间的区别
- RHEL5.7下的vsftpd服务器配置
- ldr与adr的区别
- remove_if
- JS常用正则表达式(3)
- 理解JavaScript函数
- The SOAP Body Element
- activity 标签总结1
- RHEL5.7下的sendmail服务器配置
- python遍列目录搜索文件夹及子文件夹图片文件
- Oracle存储过程中某些分支漏了commit造成调用OCI接口OCIStmtExecute不返回
- webview 部分代码
- SCrum元素
- RHEL5.7下iptables防火墙配置(上)
- PowerDesigner 连接oracle直接生成数据库中的表