【问题标题】:How to identify soap Request is SOAP 1.1 or SOAP 1.2如何识别soap Request是SOAP 1.1还是SOAP 1.2
【发布时间】:2013-12-11 08:05:35
【问题描述】:

在 java 中,如何检查 SOAP Request XML 的版本是 SOAP 1.1 还是 SOAP 1.2。

【问题讨论】:

  • 你有 WSDL 文件吗?

标签: java soap soap1.2


【解决方案1】:

是的,有办法做到这一点。认为以下是您的 SOAP 消息

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
    .........
</soapenv:Header>
<soapenv:Body>
    ....
</soapenv:Body>

您可以使用soapenv 属性区分这两者。

SOAP 1.1:http://schemas.xmlsoap.org/soap/envelope/

SOAP 1.2:http://www.w3.org/2003/05/soap-envelope

所以你会发现上面的soap消息和SOAP 1.1有关。认为这会对您有所帮助。

更多详情请参阅:WSO2 library artical

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-07-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-25
    • 2014-04-10
    • 1970-01-01
    • 2011-09-21
    相关资源
    最近更新 更多