Hello, 

I'm very new to building RESTful webservices using apache cxf and I
currently have a small sample that returns a javax.ws.rs.core.Response in
xml format using the @ProduceMime("application/xml").  My question is how do
I return a javax.ws.rs.core.Response in JSON format?  I've tried using
@ProduceMime("text/json"), @ProduceMime("application/json").  I'm using JAXB
to convert the object to xml and then rebuilding the response, but I'm not
sure how to rebuild the response when I return json.  Is this possible with
CXF?

Thanks, 

Colin
-- 
View this message in context: 
http://old.nabble.com/How-to-use-CXF-and-JSON-tp26600386p26600386.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to