camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Roger <>
Subject [CXF] Inbound endpoint with PAYLOAD dataformat
Date Wed, 14 Apr 2010 10:17:46 GMT

Hello Camel,

I am experimenting a strange issue when using CXF inbound endpoint with
PAYLOAD dataformat option (no problem in MESSAGE mode).

First I declare a CXF endpoint:

	<cxf:cxfEndpoint id="F1" address="http://localhost:10101/F1"
serviceClass="CXFUseCase"> <!-- Interface with one method -->
			<bean class="org.apache.cxf.xmlbeans.XmlBeansDataBinding" />
			<entry key="dataFormat" value="PAYLOAD"/>

Then, in my route I use it:

			<from uri="cxf:bean:F1" />
			<bean ref="inspect" />

When I debug in the inspect bean the Exchange object does not contain any
However, setting a response value works correctly.

    public void process(final Exchange exchange){
    	String msg = exchange.getIn().getBody(String.class);
    	System.out.println(msg); // is null
    	exchange.getOut().setBody(createResponse(), PersonDocument.class); //
is ok

I read the documentation on the website but found it quite not clear. Am I
doing something wrong?

Thanks in advance,

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message