在java中,如何检查SOAP请求XML的版本是SOAP 1.1还是SOAP 1.2。
发布于 2013-12-11 16:22:33
是的,有一种方法可以执行this.Think,下面是您的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消息与SOAP1.1相关。我想这会对你有帮助。
有关更多细节,请参阅:WSO2 library artical on this
https://stackoverflow.com/questions/20513682
复制相似问题