1,命名空间的不同: soap1.1的命名空间: xmlns:soap=“http://schemas.xmlsoap.org/soap/envelope/ “ soap1.2 命名空间: xmlns:soap=http://www.w3.org/2003/05/soap-envelope“ 2,soap1.1版本与soap1.2版本在头信息上存在差异。(红色字体部分表示不同
1,命名空间的不同:
soap1.1的命名空间:
xmlns:soap=“http://schemas.xmlsoap.org/soap/envelope/ “
soap1.2 命名空间:
xmlns:soap=http://www.w3.org/2003/05/soap-envelope“
2,soap1.1版本与soap1.2版本在头信息上存在差异。(红色字体部分表示不同之处)
soap1.1的http请求头:
post /xe_cxf2.4_soap12_spring_web/ws/helloworldsoap12?wsdl http/1.1
content-type: text/xml; charset=utf-8
accept: */*
soapaction:
user-agent: apache cxf 2.4.0
cache-control: no-cache
pragma: no-cache
host: localhost:6767
connection: keep-alive
content-length: 216
soap1.2的http请求头:
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
3,基于soap1.1生成的wsdl和基于soap1.2生成的wsdl也不一样:
在定义service部分差别如下:
soap1.1是以:soap:address定义。
soap1.2是以: soap12:address定义。-jdk1.6不支持12形式的访问。
4,在cxf中两种协议请求的方式也不一样:
4.1为content-type:text/xm;charset=utf-8
4.2为content-type:application/soap+xml;charset=utf-8