I'm probably missing something here but in 1.3.0 you could dynamically create
a http get uri and have it invoke the endpoint. In 1.4 if i do something
similar 

context.createProducerTemplate().send(serverUri + "?one=uno&two=dos", new
DefaultExchange(context));

org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:
http://localhost:5432/facebook?one=uno&two=dos due to: There are 2
parameters that couldn't be set on the endpoint. Check the uri if the
parameters are spelt correctly and that they are properties of the endpoint.
Unknown parameters=[{two=dos, one=uno}]

Looking at the unit tests you add a query header to the route so i tried the
following, setting a similar header on the exchange

Exchange exchange = new DefaultExchange(context, ExchangePattern.InOut);
exchange.getIn().setHeader(HttpProducer.QUERY, "one=uno&two=dos");
context.createProducerTemplate().send(serverUri, new
DefaultExchange(context));

but the parameters do not get propagated to the server. Am I missing
something here? Is there a better way to do this? I've uploaded a simple
test that illustrates the issue.

thanks in advance,

Stephen

http://www.nabble.com/file/p18899762/HttpGetWithParamTest.java
HttpGetWithParamTest.java 
http://www.nabble.com/file/p18899762/HttpGetWithParamTest.java
HttpGetWithParamTest.java 



-- 
View this message in context: 
http://www.nabble.com/HttpGet-Issue-with-1.4.0-tp18899762s22882p18899762.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to