You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by David Hay <da...@enstratius.com> on 2013/09/09 16:48:36 UTC

Understanding how to allow POSTing of JSON to RESTful service

I have a RESTful service that I want to post an Object to, using JSON from
the client.  However, I keep getting the error:  No message body reader has
been found for request class xyz

I have     <bean id="jsonProvider"
class="org.apache.cxf.jaxrs.provider.json.JSONProvider"/> configured, and
have @XmlRoolElement configured on my class.

Can someone explain how CXF handles the conversion of JSON received to the
object specified?

What else do I need?

cheers,

David

Re: Understanding how to allow POSTing of JSON to RESTful service

Posted by David Hay <da...@enstratius.com>.
Please feel free to ignore - I figured it out


On Mon, Sep 9, 2013 at 10:48 AM, David Hay <da...@enstratius.com> wrote:

> I have a RESTful service that I want to post an Object to, using JSON from
> the client.  However, I keep getting the error:  No message body reader has
> been found for request class xyz
>
> I have     <bean id="jsonProvider"
> class="org.apache.cxf.jaxrs.provider.json.JSONProvider"/> configured, and
> have @XmlRoolElement configured on my class.
>
> Can someone explain how CXF handles the conversion of JSON received to the
> object specified?
>
> What else do I need?
>
> cheers,
>
> David
>
>