camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richa <rsinha2...@gmail.com>
Subject Exception in restful web service
Date Wed, 06 Feb 2013 05:12:50 GMT
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.

Mime
View raw message