Hi Instead of routing to "seda:generateCSV", you can wiretap, then the response goes back to the client while the file is generated. See http://camel.apache.org/wire-tap.html
On Fri, Mar 13, 2015 at 3:55 AM, chaituu <yarlagadd...@gmail.com> wrote: > <route> > <from uri="cxf:bean:orderEndpoint" /> > // generate the OrderResponse reply for the webservice > which is still > waiting for a reply > <bean ref="processor" method="processOrderWebservice"/> > > // Passing OrderResponse to generateCSV and this route is > working fine > <to uri="seda:generateCSV"/> > // how to get final result as OrderResponse for the > webservice that we > got in the processOrderWebservice method which is still waiting for a reply > </route> > > <route> > <from uri="seda:generateCSV"/> > <bean ref="processor" method="transFormToOrderModel"/> > <marshal ref="csvReport"/> > <to uri="file:target/messages?fileName= > ${date:now:yyyyMMdd}/TEST_${date:now:yyyyMMdd}.csv"/> > </route> > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/how-to-send-response-to-the-webservice-tp5764065.html > Sent from the Camel - Users mailing list archive at Nabble.com. >