camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament" <john.d.am...@gmail.com>
Subject Correct way to read a CXF Message in MESSAGE format
Date Wed, 31 Jul 2013 17:26:38 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message