Hi
I want to send a SOAP request to a service as below with the Data format for CXF endpoint as PAYLOAD, How to do this?:
<soapenv:Envelope xmlns:soapenv="" xmlns:com="com.esendex.ems.soapinterface">
<soapenv:Header>
<com:MessengerHeader>
<!--Optional:-->
<com:Username>?</com:Username>
<!--Optional:-->
<comassword>?</comassword>
<!--Optional:-->
<com:Account>?</com:Account>
</com:MessengerHeader>
</soapenv:Header>
<soapenv:Body>
<comendMessage>
<!--Optional:-->
<com:recipient>?</com:recipient>
<!--Optional:-->
<com:body>?</com:body>
<com:type>?</com:type>
</comendMessage>
</soapenv:Body>
</soapenv:Envelope>
If i use PAYLOAD the headers are removed and only body content is sent as request. Or should I use onlt RAW data format? Please help to resolve this
You could add a cProcessor component and manipulate it with CxfPayload<SoapHeader> class, for more details, please see
http://camel.apache.org/cxf.html, section "How to deal with the message for a camel-cxf endpoint in PAYLOAD data format".