camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nehachauhan1029 <nehachauhan1...@gmail.com>
Subject How to invoke a rest service from Camel routes
Date Fri, 06 Mar 2015 18:52:37 GMT
Hi,

I want to invoke
http://www.webservicex.net/stockquote.asmx/GetQuote?symbol=RHT from my camel 
project


  <camelContext trace="false" xmlns="http://camel.apache.org/schema/spring">
    <route id="my_Sample_Camel_Route_with_CXF">
     
         <from
uri="cxfrs:http://www.webservicex.net/stockquote.asmx/GetQuote?symbol=RHT"/>    
          <to uri="file:target/messages/quote"/>
    </route>
</camelContext>


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