On Mar 24, 2014, at 9:52 PM, chaij <jin.c...@indigoarc.com> wrote: > So I should do exchange.getOut().setBody(soapMessage) and leave the > exchange.getIn().getHeaders() behind since it has a lot of other information > which should not be relevant? > > I saw you added convertBody to String for SOAPMessage. It would be really > nice if there is one to do the reverse. Take the string and rightfully > construct the SOAPMessage.
You could try setting the body with a "new StreamSource(new StringReader(string))”. That would force it to be XML. Dan > > Appreciate your feedback. > > Thanks! > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-CXF-Proxy-with-WS-Security-tp5749223p5749304.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Daniel Kulp dk...@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com