Hi all I'm dynamically binding a CXF endpoint to a processor instance, using a route like this:
from(simpleEndpointURI + "?dataFormat=MESSAGE&wsdlURL=wsdl/Import.wsdl&loggingFeatureEnabled=true").process(new ImportProcessor()); I setup a simple way of reading this body using an InputStream, but this seems wrong. I'm trying to get the soap headers and the soap body of the message. I'm using MESSAGE dataFormat because I can't seem to get the mustunderstand to process correctly without it. >From the docs: MESSAGEMESSAGE is the raw message that is received from the transport layer. It is not suppose to touch or change Stream, some of the CXF interceptor will be removed if you are using this kind of DataFormat so you can't see any soap headers after the camel-cxf consumer and JAX-WS handler is not supported. Which is fine for me, all I need is some data simply from the body. But is it possible to access the headers? I see everything fine in the InputStream, but it would make more sense if this were available somehow in a POJO/Java format. Is there a way I can use another dataFormat but get it to generate the MustUnderstand properly? Thanks, John