SOAP Version Mismatch

12,992

Change your client as suggested in this link.. JAX WS SOAP 1.2

Share:
12,992
Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    Admin almost 2 years

    I'm currently working on a client-end Java application that calls a Soap-based (v1.2) Webservice. The service provides a method-call 'ping()' to check the service status (whether it's currently available or not). Once the 'ping()' method-call is called using proxy-class instance, I'm getting a java.rmi.RemoteException stating (400)[ISS.0088.9168] SOAP Version Mismatch.

    The following artifacts are disclosed herewith for your reference;

    1. The WSDL for the service

    I also tracked down the Soap-request which has been sent from the client to the service from a tool named TcpMon. I also used another tool named SoapUI to invoke the 'ping()' method-call and it generated a successful response.

    The Soap-request generated by the Java application differs the Soap-request generated by SoapUI, means there was a Soap version conflict. Those request formats are also disclosed herewith for your understanding.

    1. Soap-request generated Java application (tracked down from TcpMon)
    2. Soap-request and Soap-response generated by SoapUI

    What would be the solution for this?

    1. The WSDL for the service

    <wsdl:definitions xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapjms="http://www.w3.org/2010/soapjms/" xmlns:tns="http://xxxxxxxxxx" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" name="v1" targetNamespace="http://xxxxxxxxxx">
    <wsdl:types>
    <pre>
    <xsd:schema xmlns:tns="http://xxxxxxxxxx" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xxxxxxxxxx">
    <xsd:element name="xxxxxxxxxx" type="tns:xxxxxxxxxx"/>
    <xsd:element name="xxxxxxxxxx" type="tns:xxxxxxxxxx"/>
    <xsd:element name="xxxxxxxxxx" type="tns:xxxxxxxxxx"/>
    <xsd:element name="xxxxxxxxxx" type="tns:xxxxxxxxxx"/>
    <xsd:element name="xxxxxxxxxx" type="tns:xxxxxxxxxx"/>
    <xsd:element name="xxxxxxxxxx" type="tns:xxxxxxxxxx"/>
    <xsd:element name="xxxxxxxxxx" type="tns:xxxxxxxxxx"/>
    <xsd:element name="xxxxxxxxxx" type="tns:xxxxxxxxxx"/>
    <xsd:element name="xxxxxxxxxx" type="tns:xxxxxxxxxx"/>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element name="xxxxxxxxxx" nillable="true" type="tns:xxxxxxxxxx"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element name="xxxxxxxxxx" type="tns:xxxxxxxxxx"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:simpleType name="xxxxxxxxxx">
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="30"/>
    <xsd:whiteSpace value="preserve"/>
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element minOccurs="0" name="status" nillable="true" type="tns:xxxxxxxxxx"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element name="xxxxxxxxxx" type="xsd:int"/>
    <xsd:element name="xxxxxxxxxx" type="xsd:string"/>
    <xsd:element maxOccurs="unbounded" name="errors" nillable="true" type="tns:xxxxxxxxxx"/>
    <xsd:element maxOccurs="unbounded" name="warnings" nillable="true" type="tns:warning"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element name="xxxxxxxxxx" type="xsd:string"/>
    <xsd:element name="xxxxxxxxxx" type="xsd:string"/>
    <xsd:element name="xxxxxxxxxx" type="xsd:string"/>
    <xsd:element name="xxxxxxxxxx" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element name="xxxxxxxxxx" type="xsd:string"/>
    <xsd:element name="xxxxxxxxxx" type="xsd:string"/>
    <xsd:element name="xxxxxxxxxx" type="xsd:string"/>
    <xsd:element name="xxxxxxxxxx" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element maxOccurs="unbounded" name="faults" nillable="true" type="tns:xxxxxxxxxx"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element name="xxxxxxxxxx" nillable="true" type="xsd:string"/>
    <xsd:element name="xxxxxxxxxx" nillable="true" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence></xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element maxOccurs="unbounded" minOccurs="0" name="xxxxxxxxxx" nillable="true" type="tns:xxxxxxxxxx"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element name="xxxxxxxxxx" type="xsd:string"/>
    <xsd:element name="xxxxxxxxxx" type="xsd:boolean"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence></xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element name="xxxxxxxxxx" nillable="true" type="xsd:boolean"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element name="xxxxxxxxxx" nillable="true" type="tns:xxxxxxxxxx"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element name="xxxxxxxxxx" type="xsd:base64Binary"/>
    <xsd:element name="xxxxxxxxxx" type="tns:xxxxxxxxxx"/>
    <xsd:element minOccurs="0" name="private" type="xsd:boolean"/>
    <xsd:element name="xxxxxxxxxx" type="tns:xxxxxxxxxx"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:simpleType name="xxxxxxxxxx">
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="500"/>
    <xsd:whiteSpace value="preserve"/>
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="xxxxxxxxxx">
    <xsd:restriction base="xsd:string">
    <xsd:enumeration value="xxx"/>
    <xsd:enumeration value="xxx"/>
    <xsd:whiteSpace value="preserve"/>
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element name="xxxxxxxxxx" nillable="true" type="tns:xxxxxxxxxx"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="xxxxxxxxxx">
    <xsd:sequence>
    <xsd:element name="xxxxxxxxxx" type="xsd:boolean"/>
    <xsd:element minOccurs="0" name="paymentId" nillable="true" type="xsd:string"/>
    <xsd:element maxOccurs="unbounded" name="errors" nillable="true" type="tns:error"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="xxxxxxxxxx">
    <wsdl:part name="parameters" element="tns:xxxxxxxxxx"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="xxxxxxxxxx">
    <wsdl:part name="parameters" element="tns:xxxxxxxxxx"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="xxxxxxxxxx">
    <wsdl:part name="parameters" element="tns:xxxxxxxxxx"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="xxxxxxxxxx">
    <wsdl:part name="parameters" element="tns:xxxxxxxxxx"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="xxxxxxxxxx">
    <wsdl:part name="parameters" element="tns:xxxxxxxxxx"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="xxxxxxxxxx">
    <wsdl:part name="parameters" element="tns:xxxxxxxxxx"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="xxxxxxxxxx">
    <wsdl:part name="parameters" element="tns:xxxxxxxxxx"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="xxxxxxxxxx">
    <wsdl:part name="parameters" element="tns:xxxxxxxxxx"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="xxxxxxxxxx">
    <wsdl:part name="parameters" element="tns:xxxxxxxxxx"></wsdl:part>
    </wsdl:message>
    <wsdl:portType name="xxxxxxxxxx">
    <wsdl:operation name="xxxxxxxxxx">
    <wsdl:input message="tns:xxxxxxxxxx"></wsdl:input>
    <wsdl:output message="tns:xxxxxxxxxx"></wsdl:output>
    <wsdl:fault name="faults" message="tns:xxxxxxxxxx"></wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="xxxxxxxxxx">
    <wsdl:input message="tns:xxxxxxxxxx"></wsdl:input>
    <wsdl:output message="tns:xxxxxxxxxx"></wsdl:output>
    <wsdl:fault name="xxxxxxxxxx" message="tns:xxxxxxxxxx"></wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="xxxxxxxxxx">
    <wsdl:input message="tns:xxxxxxxxxx"></wsdl:input>
    <wsdl:output message="tns:xxxxxxxxxx"></wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="xxxxxxxxxx">
    <wsdl:input message="tns:xxxxxxxxxx"></wsdl:input>
    <wsdl:output message="tns:xxxxxxxxxx"></wsdl:output>
    <wsdl:fault name="xxxxxxxxxx" message="tns:xxxxxxxxxx"></wsdl:fault>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="xxxxxxxxxx" type="tns:xxxxxxxxxx">
    <soap12:binding style="xxxxxxxxxx" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="xxxxxxxxxx">
    <soap12:operation soapAction="xxxxxxxxxx" style="document"/>
    <wsdl:input>
    <soap12:body parts="parameters" use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap12:body parts="parameters" use="literal"/>
    </wsdl:output>
    <wsdl:fault name="xxxxxxxxxx">
    <soap12:fault name="xxxxxxxxxx" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="xxxxxxxxxx">
    <soap12:operation soapAction="xxxxxxxxxx"/>
    <wsdl:input>
    <soap12:body parts="parameters" use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap12:body parts="parameters" use="literal"/>
    </wsdl:output>
    <wsdl:fault name="xxxxxxxxxx">
    <soap12:fault name="xxxxxxxxxx" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="ping">
    <soap12:operation soapAction="xxxxxxxxxx" style="document"/>
    <wsdl:input>
    <soap12:body parts="parameters" use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap12:body parts="parameters" use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="xxxxxxxxxx">
    <soap12:operation soapAction="xxxxxxxxxx" style="document"/>
    <wsdl:input>
    <soap12:body parts="parameters" use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap12:body parts="parameters" use="literal"/>
    </wsdl:output>
    <wsdl:fault name="xxxxxxxxxx">
    <soap12:fault name="xxxxxxxxxx" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="xxxxxxxxxx">
    <wsdl:port name="xxxxxxxxxx" binding="tns:xxxxxxxxxx">
    <soap12:address location="https://xxxxxxxxxx"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    

    2. Soap-request generated Java application (tracked down from TcpMon) [Failed]

    <?xml version="1.0" encoding="UTF-8"?>
    <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:Body>
            <ping xmlns="http://xxxxxxxxxx"/>
        </soapenv:Body>
    </soapenv:Envelope>
    

    3. Soap-request generated by SoapUI [Successful]

    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:dir="http://xxxxxxxxxx">
       <soap:Header/>
       <soap:Body>
          <dir:ping/>
       </soap:Body>
    </soap:Envelope>
    

    3. Soap-response generated by SoapUI [Successful]

    <?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
        <soapenv:Body>
            <ser-root:pingResponse xmlns:ser-root="http://xxxxxxxxxx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <status>true</status>
            </ser-root:pingResponse>
        </soapenv:Body>
    </soapenv:Envelope>
    
  • dxvargas
    dxvargas over 6 years
    I don't see any suggestion in the linked page.