SOAP 1.1与1.2版本区别
来源:互联网 发布:网络诈骗 刑事立案 编辑:程序博客网 时间:2024/05/16 08:27
转自:http://blog.sina.com.cn/s/blog_5f044a4d0101gzli.html
WebService通过HTTP协议完成远程调用: (深入分析) – RPC
Soap1.1的命名空间:
Soap1.2 命名空间:
SOAP1.1的HTTP请求头:
Content-Type: text/xml; charset=UTF-8
Accept: **
User-Agent: Apache CXF 2.4.0
Cache-Control: no-cache
Pragma: no-cache
Host: localhost:6767
Connection: keep-alive
Content-Length: 214
SOAP1.2的请求头:
POST /xe_cxf2.4_soap12_spring_web/ws/helloworldsoap12?wsdl HTTP/1.1
Content-Type: application/soap+xml;charset=UTF-8
Accept: */*
User-Agent: Apache CXF 2.4.0
Cache-Control: no-cache
Pragma: no-cache
Host: localhost:6767
Connection: keep-alive
Content-Length: 214
SOAP1.1和1.2的WSDL文件的差别:
POST /WSShakespeare.asmx HTTP/1.1
Host: www.xmlme.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://xmlme.com/WebServices/GetSpeech"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetSpeech xmlns="http://xmlme.com/WebServices">
<Request>string</Request>
</GetSpeech>
</soap:Body>
</soap:Envelope>
SOAP 1.2 request:
POST /WSShakespeare.asmx HTTP/1.1
Host: www.xmlme.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetSpeech xmlns="http://xmlme.com/WebServices">
<Request>string</Request>
</GetSpeech>
</soap12:Body>
</soap12:Envelope>
I see 3 differences:
SOAP 1.2 uses "application/soap+xml" as Content-Type and SOAP 1.1 uses "text/xml".
SOAP 1.2 does not use SOAPAction header line.
SOAP 1.2 uses "http://www.w3.org/2003/05/soap-envelope" as the envolope namespace and SOAP 1.1 uses "http://schemas.xmlsoap.org/soap/envelope/"
- SOAP 1.1与1.2版本区别
- SOAP 1.1与SOAP 1.2的区别
- SOAP 1.1与SOAP 1.2的区别
- SOAP 1.1与SOAP 1.2的区别
- SOAP 版本 1.1 规范
- SOAP与CORBA,COM/DCOM的区别
- ArcGIS Server SOAP与REST的区别
- rest webservice与soap webservice区别
- Restful Webservice与Soap Webservices区别
- 浅谈 SOAP Webserver 与 Restful Webserver 区别
- 浅谈 SOAP Webserver 与 Restful Webserver 区别
- SOAP Webserver 与 Restful Webserver 区别
- SOAP 1.2 与 GET 请求
- WebService的SOAP修改版本变为1.2版本的协议
- openmeetings2.0版本基于SOAP与第三方应用集成
- soap soapenv SOAP-ENV 区别
- REST与SOAP样式Web 服务的区别
- Webservice学习笔记四,XML-RPC与SOAP 区别
- 最大似然参数估计与贝叶斯参数估计
- ButterKnife在8.4的使用
- oj-7-D-三角形面积计算
- python环境搭建的一点经验
- InetAddress.getLocalHost() throws UnknownHostException
- SOAP 1.1与1.2版本区别
- c++基础注意点
- 冒泡排序与选择排序
- css基础之2:css位置的其他写法,元素类型,元素模式转化,css特性,伪类,背景
- 启动Activity
- OS X安装和使用Anaconda
- 编译器动手实践之:实现C语言函数定义的语法解析1
- 无刷新文件上传
- NEECR 2014