dataFormat=MESSAGE assumes the body content represents the entire soap message.
If you are sending the plain payload to the endpoint, you have to use
use dataFormat=PAYLOAD so that it will be wrapped in the soap
envelope.

2016-06-21 2:52 GMT+02:00 Shultz, Dmitry <dmitry_shu...@kaltire.com>:
> Hi All,
>
> I have a route configured like this:
>
> public void configure() throws Exception {
>
>         String cxfUri = 
> String.format("cxf://%s/?dataFormat=MESSAGE&username=%s&password=%s&loggingFeatureEnabled=true",
>                 url, user, password);
>         CxfEndpoint myCxfEp = (CxfEndpoint) getContext().getEndpoint(cxfUri);
>         myCxfEp.setServiceClass(org.tem.SomeService.class);
>
>         from("direct:service1")
>                 .to(cxfUri)
> }
>
> When I put request object in the body and send it to "direct:service1" It is 
> marshaled  to xml correctly and sent, but for some reason it doesn't wrap it 
> with SOAP envelope and headers (the http payload has only the request xml). 
> Is there anything special supposed to be done in order to make sure outgoing 
> message has the proper soap format?
>
> Cheers,
> Dmitry

Reply via email to