`
BruceXX
  • 浏览: 138981 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

SOAP 1.1与SOAP 1.2的区别

    博客分类:
  • WEB
 
阅读更多
SOAP 1.1 request:

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/"


主要是报头和 xmlns:soap12不一样 ,被axis2 坑了一把
0
0
分享到:
评论

相关推荐

    soap1.1和soap1.2区别

    POST /WSShakespeare.asmx HTTP/1.1 SOAP 1.1 request: 报头和 xmlns:soap12不一样

    SOAP 1.1和1.2客户端规范PHP实现-PHP开发

    goetas-webservices / soap-client SOAP 1.1和1.2客户端规范PHP实现。 优点:纯PHP,不依赖于ext-soap可扩展(JMS事件侦听器支持)PSR-7 HTTP消息传递goetas-webservices / soap-client PHP实现SOAP 1.1和1.2客户端...

    soap-server:SOAP 1.1和1.2服务器的纯PHP实现

    PHP实现SOAP 1.1和1.2服务器规范。 优点: 纯PHP,不依赖ext-soap 可扩展(JMS事件侦听器支持) PSR-7 HTTP消息传递 PSR-15 HTTP服务器处理程序 无需在生产中解析WSDL / XSD IDE类型提示支持 仅支持文档/文字...

    PHP使用SOAP调用.net的WebService数据

    这个与一般的PHP POST或GET传值再查库拿数据的思路有点不一样,需要用到SOAP模块,处理方法也很简单,就是有一些需要注意的事情。首先确认你的PHP.ini开启了.SOAP,就是 extension=php_soap.dll 这前面的分号去咯。...

    http protocal and soap protocal

    介绍了http协议, soap 1.1, soap 1.2协议,以及附近的MIME, DIME, MOMT等内容

    SOAP协议规范(中文版).doc

    1.1 SOAP1.2基本内容 2 1.2 符号约定 3 1.3 SOAP消息举例 3 2. SOAP消息交换模型 4 3. 与XML的关系 5 4. SOAP封装 5 4.1.1 SOAP encodingStyle属性 6 4.1.2 封装版本模型 7 4.2 SOAP头 7 4.2.1 使用头属性 7 4.2.2 ...

    soapClient.zip

    soapClient是一个webservice客户端,支持soap1.1和soap1.2标准,方便webervice接口动态调用和数据采集

    SoapWebService.zip

    Soap1.1,Soap1.2,HttpGet,HttpPost支持的数据类型测试!

    一个支持SOAP11和12规范的PHP客户端

    一个支持SOAP 1.1和1.2规范的PHP客户端

    Javascript调用WebService

    项目说明: 使用javascript 中Ajax技术调用WebService,...在service.html页面中function GetSOAPHeader提供了SOAP1.1和SOAP1.2的支持,但是xfire使用SOAP1.2时会出错。 部署时只需要修改service.html中涉及到的参数。

    SOAP最早由Dave Winner、Don Box和Bod Atkinson提出。

    SOAP最早由Dave Winner、Don Box和Bod Atkinson提出。 ...DevelopMentor和Userland加入到了讨论。 在1998年初,S0AP名字就已经被确定。...这个工作组将SOAP1.1作为基础,并于2001年7月9日提交了第一份工作组草案SOAP1.2。

    调用pb开发的webserver(SOAP 1.2)

    调用pb开发的webserver(SOAP 1.2) /* POST /webservice/n_webservice.asmx HTTP/1.1 Host: localhost Content-Type: application/soap+xml; charset=utf-8 Content-Length: length &lt;soap12:Envelope xmlns:xsi=...

    Apache Axis introduction

    • Unterstützung von SOAP 1.1 und teilweise von 1.2 • WSDL Unterstützung • JAX-RPC und SAAJ Konformität • Erweiterungen für Sicherheit • Provider für den Zugriff auf Enterprise JavaBeans

    Webservice笔记含使用cxf和jaxws两种方式开发webservice【源代码+笔记】

    Soap1.1和soap1.2区别: 跟踪soap协议 综合案例: 使用webservice传输xml数据(重点掌握) 第二天: Jaxws的深入开发: 常用注解 测试jaxws传输复杂对象类型 CXF开发webservice: CXF入门程序 Spring+...

    本科毕业论文 SOAP协议在电信支撑系统中的应用设计

    1.1研究背景 1 1.2研究意义 1 1.3研究前景 1 2 BSS及综合联机指令系统简介 1 2.1 BSS简介 1 2.2综合联机指令系统简介 2 3 基于SOAP协议的通信 2 3.1 简单对象访问协议—SOAP 2 3.1.1 SOAP简介 2 3.1.2 SOAP协议规范 ...

    C# 调用 JavaWebservice服务遇到的问题汇总

    1. A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint. 问题原因: 客户端和服务端的SOAP协议版本不一致。 解决方法: ①修改客户端SOAP协议版本和服务端一致 ②修改服务端SOAP协议版本和...

    PocketSOAP1.5.5

    Support for SOAP 1.1 and SOAP 1.2 SOAP 1.1 Section 5 encoding support, including simple types, base64 binary, arrays, multi-dim arrays, partial & sparse arrays, nil's, complex types, root handling and...

    axis2经典讲解

    Axis2不仅支持SOAP1.1和SOAP1.2,还集成了非常流行的REST WebService,同时还支持Spring、JSON等技术

    Axis2 接口生成wsdl工具

    webserice开发工具。Axis2不仅支持SOAP1.1和SOAP1.2,还集成了非常流行的REST WebService,同时还支持Spring、JSON等技术。

    SOAP Protocol

    1.1 Design Goals 1.2 Notational Conventions 1.3 Examples of SOAP Messages 2. The SOAP Message Exchange Model 3. Relation to XML 4. SOAP Envelope 4.1.1 SOAP encodingStyle Attribute 4.1.2 ...

Global site tag (gtag.js) - Google Analytics