Apache Wink 1.4 JAX-RS issue -
when returning response in code getting 406 not acceptable .
m using apache wink 1.x, jdk 7, tomcat 7. able homecoming string when type "application/json", not able homecoming json object weel response
this returns json response if not explicitly requested in header.
@produces({"application/json", "application/xml" }) public response retrieve(){ bookingtype booking ; //create booking bookingtype can pojo(annotated) or jaxb object. homecoming response.ok(booking).build(); }
apache-wink
No comments:
Post a Comment