How to identify soap Request is SOAP 1.1 or SOAP 1.2
Asked Answered
S

1

11

In java, How do I check if the version of SOAP Request XML is SOAP 1.1 or SOAP 1.2.

Subtemperate answered 11/12, 2013 at 8:5 Comment(1)
Do you have the WSDL file with you?Berezina
L
22

Yes there is a way to do this.Think following is your SOAP message

<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>

You can distinguish these two using soapenv property.

SOAP 1.1 : http://schemas.xmlsoap.org/soap/envelope/

SOAP 1.2 : http://www.w3.org/2003/05/soap-envelope

So you will find that the above soap message is related to SOAP 1.1. Think this will be helpful to you.

for more details see : WSO2 library artical on this

Lammastide answered 11/12, 2013 at 8:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.