When i try to create an Proxy service in OSB based on WSDL, by default its considering soap version as 1.1 but my requirement is to use soap version 1.2, so can anyone help me on how to change the soap version to 1.2.

WSDl file doesn't contain any soap version details neither at binding level nor at port level.

Thanks, Anil.

2

There are 2 best solutions below

7
On BEST ANSWER

You need to change a little your wsdl file and start using your soap 1.2 namespace. After that change, when you try create Proxy service from updated wsdl, you should achieve your goal.

Soap namespaces:

soap 1.1: xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
soap 1.2: xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"

You can use it proper in your wsdl file.

If you can provide your wsdl i can help you change it correctly, if you still gonna be struggling with it.

0
On

issue resolved after adding extra service in the wsdl file, like below.

<wsdl:service name="Server">
        <!-- SOAP1.1 Service -->
        <wsdl:port name="ServerSoap" binding="tns:ServerSoap">
        <soap:address location="http://localhost:8080/Server" />
    </wsdl:port>

        <!-- SOAP1.2 Service -->
    <wsdl:port name="ServerSoap12" binding="tns:ServerSoap12">
        <soap12:address location="http://localhost:8080/Server" />
    </wsdl:port>
</wsdl:service>

Thanks, Anil.