You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by atg roxx <at...@gmail.com> on 2015/08/28 17:49:04 UTC

SOAP 1.2 and cxf end point

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.

Re: SOAP 1.2 and cxf end point

Posted by yogu13 <yo...@gmail.com>.
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



--
View this message in context: http://camel.465427.n5.nabble.com/SOAP-1-2-and-cxf-end-point-tp5771070p5784906.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: SOAP 1.2 and cxf end point

Posted by suneshkumar <su...@gmail.com>.
Hi

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

Please share your experience it would be helpful

Cheers

Sunesh



--
View this message in context: http://camel.465427.n5.nabble.com/SOAP-1-2-and-cxf-end-point-tp5771070p5784902.html
Sent from the Camel - Users mailing list archive at Nabble.com.