Hi
On 24/02/12 09:14, yebz wrote:
Am trying to return a 201 http code with a Response.created() method, but the
response body is always empty. ...
URI uri = new URI(uriInfo.getPath() + "/" + appID);
return Response.created(uri).entity(anyEntity).build();
I'm wondering if it's actually blocked at the HTTP framework level,
which may be trying to enforce the 201 response returning no body.
Can you please add CXF LoggingOutInterceptor (in jaxrs:outInterceptors)
or a logging feature and check if the 'anyEntity' has actually been
serialized by CXF ?
Cheers, Sergey
any help?, thanks.
--
View this message in context:
http://cxf.547215.n5.nabble.com/Response-created-is-not-returning-response-body-tp5512130p5512130.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com