camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reji Mathews <contactr...@gmail.com>
Subject RE: how to send response to the webservice
Date Sat, 14 Mar 2015 06:20:13 GMT
Hey

Try this way.

<route>
        <from uri="cxf:bean:orderEndpoint"  />
       <bean ref="processor" method="processOrderWebservice"/>

        <inOnly uri="seda:generateCSV"/>

<setBody> ...write the camel code here to set exchange body with the
OrderReponseobject. Looks like ur cxf dataFormat is POJO by default. If so
set the java object there. Else if it's in PAYLOAD mode then hardcode the
OrderReponse xml... </setBody>

      </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>

Cheers
Reji
On 13 Mar 2015 12:34, "chaituu" <yarlagadda54@gmail.com> wrote:

> Prajod,
>
> I need OrderReponse should be sent to webservice not the file output.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/how-to-send-response-to-the-webservice-after-generated-the-csv-route-tp5764065p5764079.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

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