![](/img/trans.png)
[英]How to convert a WSDL file made for SOAP 1.1 to support SOAP 1.2
[英]How to identify soap Request is SOAP 1.1 or SOAP 1.2
在java中,如何检查SOAP Request XML的版本是SOAP 1.1还是SOAP 1.2。
是的,有一种方法可以做到这一点。请注意以下是您的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库文章
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.