Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to identify soap Request is SOAP 1.1 or SOAP 1.2

Tags:

java

soap

soap1.2

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

like image 774
user3089869 Avatar asked Dec 11 '13 08:12

user3089869


People also ask

How do I specify SOAP 1.2 in WSDL?

Indicate that a binding is bound to the SOAP 1.2 protocol. Specify an address for a SOAP endpoint. Specify the URI for the action parameter of the application/soap+xml Content-Type HTTP header value [SOAP Media] for the HTTP binding of SOAP. Define Headers that are transmitted as part of the SOAP Envelope.

What are the SOAP versions?

The most common combination is to use SOAP with HTTP and TCP. There are different versions, 1.0, 1.1, and 1.2. Before version 1.2 SOAP stood for Simple Object Access Protocol. Since version 1.2 the protocol is simply called SOAP.

Which is the base version of SOAP?

SOAP originally stood for "Simple Object Access Protocol" but version 1.2 of the standard dropped this acronym. After SOAP was first introduced, it became the underlying layer of a more complex set of web services, based on WSDL, XSD and UDDI.

What is the Content-Type for SOAP request?

The HTTP Content-Type of the SOAP request or SOAP response. The default is "text/xml".


1 Answers

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

like image 59
Malintha Avatar answered Oct 20 '22 05:10

Malintha