Hi,

I want to use the ConsumerTemplate to get data from a Webservice.
But the query I send in the receiveBody method does not seems to be valid 
encoded,
even I am using URLEncoder.encode(sparqlQuery, "UTF-8").

I run the same query in a route with a timer

from("timer:foobar?period=10000")
        .setHeader(Exchange.HTTP_QUERY, constant("query=" + encodedurl))
        .to("http://localhost:2020/sparql";).process(new Processor() {..

..

And there it worked.
What is the difference between those calls?

Thx & regeards
Stefan



Reply via email to