首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何识别soap请求是SOAP 1.1还是SOAP 1.2

如何识别soap请求是SOAP 1.1还是SOAP 1.2
EN

Stack Overflow用户
提问于 2013-12-11 16:05:36
回答 1查看 11.5K关注 0票数 9

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-12-11 16:22:33

是的,有一种方法可以执行this.Think,下面是您的SOAP消息

代码语言:javascript
复制
<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消息与SOAP1.1相关。我想这会对你有帮助。

有关更多细节,请参阅:WSO2 library artical on this

票数 20
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20513682

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档