Hello Charles

But, with that code I used I successfully get the response and successfully
unmarshals it...... in fact, in my code my problem was in the line of
setBody.... I can not get the attributes.

Anyway I will try your proposal.

Kind regards.


[image: Inline image 2]

* Jonathan Vila    ** <https://www.twitter.com/jonathan_vila>
<http://www.linkedin.com/in/jonathanvila>*


* [email protected] <[email protected]>*




On Mon, Oct 27, 2014 at 8:57 AM, Charles Moulliard <[email protected]> wrote:

> 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