Laurentiu Opincariu
Laurentiu Opincariu

Reputation: 11

Endpoints for different Soap versions

I have two endpoints for different clients.

I used

<bean id="messageFactory2" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory">
        <description>A message factory to support SOAP 1.2</description>
        <property name="soapVersion">
            <util:constant static-field="org.springframework.ws.soap.SoapVersion.SOAP_12"/>
        </property>
    </bean>

to support Soap 1.2 calls, but now the one for Soap 1.1 is not working anymore:

Blockquote com.sun.xml.messaging.saaj.soap.SOAPVersionMismatchException: Cannot create message: incorrect content-type for SOAP version. Got: text/xml; charset=UTF-8 Expected: application/soap+xml

How can I do to manage them both? Thank you for your answers.

Upvotes: 0

Views: 1067

Answers (1)

Related Questions