camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hom <>
Subject CXFRS does not process JSON
Date Mon, 23 Jul 2012 15:10:10 GMT

I've created a cxfrs route as described in (How to consume the REST request in
Camel). I am using SOAPUI to test the endpoint. The resource class is:

public class Resource {
    public DoItResponse doit(DoItRequest request){return null;};

For XML everything works fine, but when I send a json request I always get:

<data contentType="text/plain" contentLength="555"><![CDATA[JAXBException
occurred : unexpected element (uri:"", local:"DoItRequest"). Expected
elements are
ProviderError>. unexpected element (uri:"", local:"DoItRequest") ...

I set media type and access header to application/json, but it seems that
json is not recognized.
Any ideas?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message