You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by WardhaPk <wa...@gmail.com> on 2013/02/08 00:22:29 UTC

Camel HTTP

Hello,I am using Camel HTTP Component to invoke REST based Services. The REST
Service returns XML Content. I am looking for a way to parse this XML to
Java Objects. Is there a simple way to do this using any of the CAMEL HTTP
functionality?



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-HTTP-tp5727179.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel HTTP

Posted by WPk <wa...@gmail.com>.
Thanks William. I am also trying to find out how I can set multiple headers
for the HTTP component. Please advise.

On Thu, Feb 7, 2013 at 6:25 PM, Willem.Jiang [via Camel] <
ml-node+s465427n5727183h31@n5.nabble.com> wrote:

> Hi,
> Camel HTTP component just supposed to handle the HTTP transport for you ,
> it doesn't care about the underlay stream.
> If you want to parser the XML, you can try to use JAXB data format[1].
>
> [1]http://camel.apache.org/jaxb.html
>
> --
> Willem Jiang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Web: http://www.fusesource.com | http://www.redhat.com
> Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/)
> (English)
>           http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
> Twitter: willemjiang
> Weibo: 姜宁willem
>
>
>
>
>
> On Friday, February 8, 2013 at 7:22 AM, WardhaPk wrote:
>
> > Hello,I am using Camel HTTP Component to invoke REST based Services. The
> REST
> > Service returns XML Content. I am looking for a way to parse this XML to
> > Java Objects. Is there a simple way to do this using any of the CAMEL
> HTTP
> > functionality?
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Camel-HTTP-tp5727179.html
> > Sent from the Camel - Users mailing list archive at Nabble.com (
> http://Nabble.com).
>
>
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/Camel-HTTP-tp5727179p5727183.html
>  To unsubscribe from Camel HTTP, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5727179&code=d2FyZGhhLnBrQGdtYWlsLmNvbXw1NzI3MTc5fDE5MDY1ODEwNzk=>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Thanks,
Wardha




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-HTTP-tp5727179p5727243.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel HTTP

Posted by Willem jiang <wi...@gmail.com>.
Hi,
Camel HTTP component just supposed to handle the HTTP transport for you , it doesn't care about the underlay stream.
If you want to parser the XML, you can try to use JAXB data format[1].

[1]http://camel.apache.org/jaxb.html  

--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Friday, February 8, 2013 at 7:22 AM, WardhaPk wrote:

> Hello,I am using Camel HTTP Component to invoke REST based Services. The REST
> Service returns XML Content. I am looking for a way to parse this XML to
> Java Objects. Is there a simple way to do this using any of the CAMEL HTTP
> functionality?
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-HTTP-tp5727179.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).