Hi Jonathan,

To call the HTTP Server exposing the REST service the HTTP producer must be
used and not the HTTP Consumer component of Camel (
http://camel.apache.org/http.html). This syntax is not correct
(from("http://";) while this one is correct

from("direct:marvel").to("
http://gateway.marvel.com:80/v1/public/comics?dateDescriptor=nextWeek&ts=987&apikey=97f295907072a970c5df30d73d1f3816&hash=abfa1c1d42a73a5eab042242335d805d
").
      unmarshal().json(JsonLibrary.Jackson).
      setBody(simple("my attributes are : ${body?.code?}")).
      to("stream:out");

Regards,

Reply via email to