File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Response.created() is not returning response body Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Response.created() is not returning response body " Watch "Response.created() is not returning response body " New topic
Author

Response.created() is not returning response body

Dario Herrera
Greenhorn

Joined: Feb 24, 2012
Posts: 1
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();
any help?, thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Response.created() is not returning response body
 
Similar Threads
Upgradeing to jQuery 1.4.4
<jsp:include> calling a servlet
HTTP status 406 - Please HELP!!! Spring+Ajax+JSON
Populate Table Rows With Data from AJAX
Combine JAXB + JPA?