I just add an unit to show you how to do it in camel. https://git-wip-us.apache.org/repos/asf?p=camel.git;a=commitdiff;h=01d3dad9 -- Willem Jiang
Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On June 29, 2014 at 4:14:50 PM, madhu_online1 ([email protected]) wrote: > Hi, > I want to pass some parameter values in my http GET request at runtime and > am not able to figure out a way to do this. The parameter is in my IN > message. I have pasted the code snippet below:- > > public class DocumentCountRouteBuilder extends RouteBuilder { > > public void configure() { > > String docUID = "${in.body.documentID}"; > > from(documentServiceEndpoint) > .setHeader(Exchange.HTTP_METHOD, constant("GET")) > .setHeader(Exchange.HTTP_URI, > simple("http://rq3l2hps1:9081/V5/ECM/Rest/content/filenet/ClaimsTargetOS/TempClaimCenterDocument/Count?" > > +"&GWCC_DocUID=${in.body.documentID}")) > > .toF("http://url") > .transform(responseTransformer) > .marshal(format); > > > I can't seem to figure out how to set the value of GWCC_DocUID at runtime. I > don't understand how Camel variables get initialized since when I log the > value of ${in.body.documentID} it logs properly. > I am new to Camel. Please help. > > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Setting-REST-service-URL-parameters-at-runtime-in-Camel-tp5753001.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >
