camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Taariq Levack <taar...@gmail.com>
Subject Re: how to send response to the webservice
Date Fri, 13 Mar 2015 05:51:31 GMT
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 <yarlagadda54@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.
>

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