On 06/02/13 05:12, 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.


Where does Server.Hello class come from ? It appears, from the way the invocation is done, CXF assumes that the response class is Server.Hello

Sergey



--
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.


--

Reply via email to