Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

SOAP headers in CXF Payload mode

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:-->
         <com0683p000009MAB6.pngassword>?</com0683p000009MAB6.pngassword>
         <!--Optional:-->
         <com:Account>?</com:Account>
      </com:MessengerHeader>
   </soapenv:Header>
   <soapenv:Body>
      <com0683p000009M9p6.pngendMessage>
         <!--Optional:-->
         <com:recipient>?</com:recipient>
         <!--Optional:-->
         <com:body>?</com:body>
         <com:type>?</com:type>
      </com0683p000009M9p6.pngendMessage>
   </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
Labels (4)
2 Replies
Anonymous
Not applicable
Author

Any help for the above query would be appreciated

Regards
Anonymous
Not applicable
Author

Hi,

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".

Regards