Hi Greg,

With the following code :

from("jetty:http://localhost:8081/myapp/myservice?param1={param1}&param2={param2}";)
.to("restlet:http://localhost:20010/services/getInfos?param1=(param1)&param2=(param2)&restletMethod=get");
 

I get an url like that in the log : 

http://localhost:20010/services/getInfos?param1=ENFR&param2=130.008&param1=%28param1%29&param2=%28param2%29

I have found something that works :

from("jetty:http://0.0.0.0:8081/myapp/myservice2?param1={param1}&param2={param2}";)
.setHeader("CamelHttpQuery",
          simple("param1=${header.param1}&param2=${header.param2}"))
.to("restlet:http://localhost:20010/services/getInfos?&restletMethod=get";);

I'm not sure this is the best way, bu it works.

Thanks for your help.

Arnaud




--
View this message in context: 
http://camel.465427.n5.nabble.com/Getting-query-parameters-from-jetty-and-put-then-in-restlet-endpoint-tp5770602p5770707.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to