You need to set the response back in the emptyProcessor. As camel cxfrs consumer will try to find the response from the out message.
On 3/27/12 2:27 AM, GPRSLyons wrote:
Gents- Thanks much for the help so far. I am trying to do some processing on my CXFRS route before it goes back to the browser, but the body becomes null after I process. I modified an example to demonstrate my issue. In https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringProducer.xml , if I add a route to process the such as: <route> <from uri="cxfrs://bean://rsClientHttp"/> <process ref="emptyProcessor"/> </route> <bean id="emptyProcessor" class="org.apache.camel.component.cxf.jaxrs.EmptyProcessor"/> (EmptyProcessor is just an empty processor). The response from the testGetCostumerWithHttpCentralClientAPI() method of https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.java comes back null (not to mention many other tests throw exceptions). Can I not process cxfrs endpoints in this way? What am I doing wrong? -Shan -- View this message in context: http://camel.465427.n5.nabble.com/CXFRS-and-Processing-tp5596053p5596053.html Sent from the Camel - Users mailing list archive at Nabble.com.
-- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang