0 Replies Latest reply on Sep 21, 2015 8:49 AM by imsrk

    Camel - How to transform and wrap body in SOAP Envelope?

    imsrk

      Hi,

       

      I have a simple use case here, I'm trying to read a file and route the incoming payload to an external SOAP Web Service.

      Once i read the file and transform it from XML to POJO (specific to external web service) i get RAW XML as output after transformation. This when i route to the web service, it's failing as the web service is expecting SOAP Envelope around the body.

       

      I have looked into many components such as Marshal/Unmarshall component with data format soapjaxb but none seems to work or may be i'm not able to figure out how to wrap an xml with SOAP envelope.

       

      Kindly throw some light if this is achievable using camel components and best practices for the same.