3
在java中,如何检查SOAP请求XML的版本是否为SOAP 1.1或SOAP 1.2。如何识别肥皂请求是SOAP 1.1还是SOAP 1.2
在java中,如何检查SOAP请求XML的版本是否为SOAP 1.1或SOAP 1.2。如何识别肥皂请求是SOAP 1.1还是SOAP 1.2
是有办法做到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消息有关SOAP 1.1。认为这会对你有所帮助。
详细内容见:WSO2 library artical这个
你和你的WSDL文件? – aksappy