【发布时间】:2019-04-02 07:30:51
【问题描述】:
我们在 Axis2 服务器上运行 SOAP Web 服务。在客户端,我们使用 JAX WS 生成的客户端。我们尝试将 Axis2 服务器从 1.6.2 升级到 1.7.7,发现 JAX WS 客户端不再工作。服务器从 Axis2-server 返回“无法确定 SOAP 版本”。我搜索到“无法确定 SOAP 版本”错误来自公理库,该库从 SOAP 消息的 Content-Type 读取类型参数。
SOAP 请求标头示例:
Accept: application/soap+xml, multipart/related
Content-Type: multipart/related;start="<rootpart*897f69f7-8c00-461b-a0c3-08d07ea4e433@example.jaxws.sun.com>";type="application/xop+xml";boundary="uuid:897f69f7-8c00-461b-a0c3-08d07ea4e433";start-info="application/soap+xml;action=\"Authenticate\""
User-Agent: JAX-WS RI 2.2.9-b130926.1035 svn-revision#5f6196f2b90e9460065a4c2f4e30e065b245e51e
--uuid:897f69f7-8c00-461b-a0c3-08d07ea4e433
Content-Id: <rootpart*897f69f7-8c00-461b-a0c3-08d07ea4e433@example.jaxws.sun.com>
Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml;action=\"Authenticate\""
Content-Transfer-Encoding: binary
【问题讨论】: