camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: How to invoke a rest service from Camel routes
Date Sat, 07 Mar 2015 11:12:41 GMT
You didn’t specify the resource class of RS Endpoint.
As the service just return a xml back, you can use camel-http[1] or camel-http4[2] to send
that kind of request instead.

[1]https://camel.apache.org/http
[2]https://camel.apache.org/http4

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On March 7, 2015 at 2:29:47 PM, nehachauhan1029 (nehachauhan1029@gmail.com) wrote:
> Hi,
>  
> I want to invoke
> http://www.webservicex.net/stockquote.asmx/GetQuote?symbol=RHT from my camel  
> project
>  
>  
>  
>  
>  
> > uri="cxfrs:http://www.webservicex.net/stockquote.asmx/GetQuote?symbol=RHT"/>
 
>  
>  
>  
>  
>  
> Gives me error - ...
> Caused by: javax.ws.rs.NotFoundException
> at
> org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.checkResources(AbstractJAXRSFactoryBean.java:322)
> at
> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:152) 

> ... 33 more
>  
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-invoke-a-rest-service-from-Camel-routes-tp5763758.html
 
> Sent from the Camel Development mailing list archive at Nabble.com.
>  


Mime
View raw message