Can you access the service with simple http get request? For the Exception I look like the client has some trouble to read the message.
-- 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 Wednesday, February 6, 2013 at 1:12 PM, Richa wrote: > Hi, > I have a restful webservice that I am invoking using camel-cxf. I want to > call a particular function on the server. I can call the server but I am > getting the following exception while processing: > > org.apache.cxf.jaxrs.client.ClientWebApplicationException: .No message body > reader has been found for class : class com.amadeus.Server.Hello, > ContentType : application/xml. > > My method in the server that I am invoking is as follows: > > @GET > @Path("/xmlHello") > @Produces ( "application/xml" ) > public String sayXMLHello() { > > return "Server says hello"; > > } > > Kindly help me with tihs problem. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Exception-in-restful-web-service-tp5727019.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).