You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Parikshit Singh <pa...@oracle.com> on 2015/03/27 11:27:49 UTC

URHENT HELP/POC- Hit URL1 or URL2 based on xml data using Apache Camel

Hi Team,

 

Can you help me with minimum code to automate the following usecase:-

 

User will hit camel application URL

 

Camel will process the xml request and based one some specific tag value it will hit other application URL 1 or URL2

 

URL1 and URL2 will also respond with xml, Camel should be able to get that request and send it back

 

EXPECTATION:

Camel code should be mostly controllable through camelContext.xml may be using XQuery/XPATH/OGNL/RegEX plugin.

Please share code/ example/explanation.

 

 

 

Regards,

cid:image004.gif@01CBAB3F.DD44BCF0

Parikshit Singh| +91 22 6718 2728 (O) | 11130 2728 (VOIP) | +91 9167610374 (M)| HYPERLINK "mailto:parikshit.singh@oracle.com"parikshit.singh@oracle.com

Senior Consultant| Agile, Java, UX | Prime Sourcing

Oracle Financial Services Software Ltd.
Mumbai-GO | India 

HYPERLINK "http://www.oracle.com/commitment" \nGreen
OracleOracle is committed to developing practices and products that help protect the environment

 

RE: URHENT HELP/POC- Hit URL1 or URL2 based on xml data using Apache Camel

Posted by "Vanshul.Chawla" <Va...@target.com>.
Use Filter condition and XPATH for to uri

<filter>
                <simpleconditions for uri or use xpath instead of simple</simple>
                <to uri="uri 1 or 2 depending on condition" />
                <log message="Message Sent to desired uri" />
</filter>


Thanks and Regards,

Vanshul Chawla

From: Parikshit Singh [mailto:parikshit.singh@oracle.com]
Sent: Friday, March 27, 2015 3:58 PM
To: users@camel.apache.org; dev@camel.apache.org; issues@camel.apache.org
Subject: URHENT HELP/POC- Hit URL1 or URL2 based on xml data using Apache Camel
Importance: High

Hi Team,

Can you help me with minimum code to automate the following usecase:-

User will hit camel application URL

Camel will process the xml request and based one some specific tag value it will hit other application URL 1 or URL2

URL1 and URL2 will also respond with xml, Camel should be able to get that request and send it back

EXPECTATION:
Camel code should be mostly controllable through camelContext.xml may be using XQuery/XPATH/OGNL/RegEX plugin.
Please share code/ example/explanation.



Regards,
[cid:image004.gif@01CBAB3F.DD44BCF0]
Parikshit Singh| +91 22 6718 2728 (O) | 11130 2728 (VOIP) | +91 9167610374 (M)| parikshit.singh@oracle.com<ma...@oracle.com>
Senior Consultant| Agile, Java, UX | Prime Sourcing
Oracle Financial Services Software Ltd.
Mumbai-GO | India
[Green              Oracle]<http://www.oracle.com/commitment>Oracle is committed to developing practices and products that help protect the environment


RE: URHENT HELP/POC- Hit URL1 or URL2 based on xml data using Apache Camel

Posted by "Vanshul.Chawla" <Va...@target.com>.
Use Filter condition and XPATH for to uri

<filter>
                <simpleconditions for uri or use xpath instead of simple</simple>
                <to uri="uri 1 or 2 depending on condition" />
                <log message="Message Sent to desired uri" />
</filter>


Thanks and Regards,

Vanshul Chawla

From: Parikshit Singh [mailto:parikshit.singh@oracle.com]
Sent: Friday, March 27, 2015 3:58 PM
To: users@camel.apache.org; dev@camel.apache.org; issues@camel.apache.org
Subject: URHENT HELP/POC- Hit URL1 or URL2 based on xml data using Apache Camel
Importance: High

Hi Team,

Can you help me with minimum code to automate the following usecase:-

User will hit camel application URL

Camel will process the xml request and based one some specific tag value it will hit other application URL 1 or URL2

URL1 and URL2 will also respond with xml, Camel should be able to get that request and send it back

EXPECTATION:
Camel code should be mostly controllable through camelContext.xml may be using XQuery/XPATH/OGNL/RegEX plugin.
Please share code/ example/explanation.



Regards,
[cid:image004.gif@01CBAB3F.DD44BCF0]
Parikshit Singh| +91 22 6718 2728 (O) | 11130 2728 (VOIP) | +91 9167610374 (M)| parikshit.singh@oracle.com<ma...@oracle.com>
Senior Consultant| Agile, Java, UX | Prime Sourcing
Oracle Financial Services Software Ltd.
Mumbai-GO | India
[Green              Oracle]<http://www.oracle.com/commitment>Oracle is committed to developing practices and products that help protect the environment