camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: How to Get SOAP Response at the End of a Camel Route?
Date Sun, 20 Mar 2011 16:59:16 GMT
On Sun, Mar 20, 2011 at 1:55 PM, hyjshanghai <hyjshanghai@gmail.com> wrote:
> I have a camel route like this (I removed the < and > symbols to prevent from
> being filtered by Nabble):
>
> route
> from uri="cxf:bean:dummySerivceEndpoint" /
> process ref="endProcessor" /
> /route
>
> As is shown above, dummySerivceEndpoint is simply an entrance to accept SOAP
> messages. It is synchronous, and uses the PAYLOAD message format.
>
> End processor invokes exchange.getOut().setBody(cxfPayload) to manually set
> the response to be returned to the client, where cxfPayload's body contains
> a W3C XML DOM object built from a file on the local disk.
>
> To use the route, I send a SOAP message to dummySerivceEndpoint with the XML
> sender plug-in of the Eclipse IDE.
>
> However, despite that exchange.out is set by endProcessor, I still get a
> SOAP message with empty SOAP body in the "Response text" control of the XML
> Sender. Why?

Read this FAQ
http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html


And post your code you do in the processor


>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-Get-SOAP-Response-from-the-Last-Camel-Processor-in-the-Route-tp4127850p4135591.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message