users@jersey.java.net

[Jersey] Re: Problems Reading javax.ws.rs.core.Response from POST

From: Mark Petrovic <mspetrovic_at_gmail.com>
Date: Thu, 30 Dec 2010 20:05:32 -0800

On Dec 30, 2010, at 7:45 PM, gregcjames_at_comcast.net wrote:

> return Response.ok(customer).type("application/xml").build();

This should work, but still you should set the @Produces annotation on the method call.

Can you run tcpdump on the server to capture what's on the wire? There are also Jersey servlet params you can set in the web.xml file that will set lots of debug in the response header.