camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <prajod.vettiyat...@wipro.com>
Subject RE: how to send response to the webservice
Date Fri, 13 Mar 2015 06:27:48 GMT
Hi,

Add the mep attribute to the exchange in the last route:

Your original code:
<to uri="file:target/messages?fileName=
${date:now:yyyyMMdd}/TEST_${date:now:yyyyMMdd}.csv"/>

Your code with mep attribute added:

<to uri="file:target/messages?fileName=
${date:now:yyyyMMdd}/TEST_${date:now:yyyyMMdd}.csv?mep=in-out"/>

Prajod
-----Original Message-----
From: chaituu [mailto:yarlagadda54@gmail.com]
Sent: 13 March 2015 07:26
To: users@camel.apache.org
Subject: how to send response to the webservice

<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.
The information contained in this electronic message and any attachments to this message are
intended for the exclusive use of the addressee(s) and may contain proprietary, confidential
or privileged information. If you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and destroy all copies
of this message and any attachments. WARNING: Computer viruses can be transmitted via email.
The recipient should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com

Mime
View raw message