![](/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.