webservice 相关 http+SOAP 报文范例 ,以及 soap1.1 和 soap 1.2 的区别
来源:互联网 发布:第十届网络作家榜 编辑:程序博客网 时间:2024/05/16 13:39
soap1.1 和 1.2 的区别主要表现在
区别 (1)
http头的 Content-Type: 字段
1.1的 Content-Type: text/xml; charset=utf-8
1.2的 Content-Type: application/soap+xml; charset=utf-8
区别(2)
http头的SOAPAction: 字段
1.1的要求有 SOAPAction: 字段,内容为 明明空间+方法名
1.2版本 不需要 SOAPAction: 字段
区别(3)
namespace不同
1.1版本的namespace 为 http://schemas.xmlsoap.org/soap/envelope/
1.2版本的namespace 为 http://www.w3.org/2003/05/soap-envelope
SOAP 1.2范例
SOAP 请求:
POST /InStock HTTP/1.1
Host: www.example.org
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn
<?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 xmlns:m="http://www.example.org/stock">
<m:GetStockPrice>
<m:StockName>IBM</m:StockName>
</m:GetStockPrice>
</soap:Body>
</soap:Envelope>
SOAP 响应:
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn
<?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 xmlns:m="http://www.example.org/stock">
<m:GetStockPriceResponse>
<m:Price>34.5</m:Price>
</m:GetStockPriceResponse>
</soap:Body>
</soap:Envelope>
- webservice 相关 http+SOAP 报文范例 ,以及 soap1.1 和 soap 1.2 的区别
- webservice调用方式http和soap的区别
- SOAP1.1和SOAP1.2的区别
- WebService SOAP、Restful和HTTP(post/get)请求区别
- python用http发送soap报文进行webservice接口调用
- http、soap和rest区别
- SOAP Webservice和RESTful Webservice 区别
- WebService之Http协议和SOAP协议的不同
- webservice http soap
- http 调用soap webservice
- WebService两种发布协议--SOAP和REST的区别
- WebService两种发布协议--SOAP和REST的区别
- WebService两种发布协议--SOAP和REST的区别
- SOAP 1.1与SOAP 1.2的区别
- SOAP 1.1与SOAP 1.2的区别
- SOAP 1.1与SOAP 1.2的区别
- Webservice soap wsdl区别
- WebService中SOAP1.1和1.2分析
- jquery实现滚动到页面底部时无限加载内容的代码
- Js中的window.parent ,window.top,window.self 详解
- 当一个用户不是用自己的windowss账户,而是用windows group登陆时,如何查询他的权限?
- android清除数据后widget无法更新问题修改
- Android中Spinner下拉列表
- webservice 相关 http+SOAP 报文范例 ,以及 soap1.1 和 soap 1.2 的区别
- R语言快速上手小结
- 直线提取和RANSAC分割
- spring amqp股票交易应用DeferredResult
- Unity 性能分析器Profile中 WaitForTargetFPS 的涵盖
- Linux修改文件权限记录
- coffeescript的上下文
- maven构建下载包
- 我的macbook air只有一个耳机有声音,右边的耳机没有声音,原装耳机也是一样