SOAP 1.2 and cxf end point

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SOAP 1.2 and cxf end point

atg roxx
Hi All,

I am facing a issue in which in which my route is not able to accept the
soap 1.2 msg.

Cxf endpoint definition :
-----------------------
  <cxf:cxfEndpoint id="soapEndPoint" address="http://localhost:8080/test"
    serviceClass="org.apache.camel.wsdl_first.Person"
    wsdlURL="my_test.wsdl" >

        <cxf:properties>
            <entry key="dataFormat" value="PAYLOAD"/>
        </cxf:properties>

    </cxf:cxfEndpoint>




Route is defined like :
-------------------------------
   from("{{cxf:bean:soapEndPoint}}")
            .bean(CustomTransformer.class, "transformRequest")
            .end();


Service Class:
-----------
@WebService(targetNamespace = "http://com.test/webservice/envelope/multi",
name = "broker")
@XmlSeeAlso("some xyz data")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface Broker {

    @WebResult(name = "createResponse", targetNamespace = "
http://com//requestAndResponse", partName = "createResponse")
    @WebMethod(action = "http://schemas.xmlsoap.org/soap/http/createRequest)
    public com.requestandresponse.createRequest(
        @WebParam(partName = "createRequest", name = "createTestRequest",
targetNamespace = "http://com/requestAndResponse")
        CreateRequest createRequest
    ) throws FaultResponse;
}



----------- Error response when sending a soap 1.2 message ---
<faultcode>soap:VersionMismatch</faultcode>
<faultstring>A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only
endpoint.</faultstring>


Could you kindly suggest what can be done to resolve this issue.
Reply | Threaded
Open this post in threaded view
|

Re: SOAP 1.2 and cxf end point

suneshkumar
Hi

I am facing the same issue now, anybody else able to resolve this?

Please share your experience it would be helpful

Cheers

Sunesh
Reply | Threaded
Open this post in threaded view
|

Re: SOAP 1.2 and cxf end point

yogu13
Hello,

If using xml try specifying the version for soap binding or incase of annotations try specifying it as below

@SOAPBinding(style = Style.DOCUMENT)

Regards,
-Yogesh