You can use @QueryParam or @Context UriInfo to get the complete URI if for some reason you need to parse it yourself. See http://wikis.sun.com/display/Jersey/Overview+of+JAX-RS+1.0+Features for examples.
Jon -----Original Message----- From: antoine philippe chaker [mailto:[email protected]] Sent: Thursday, June 10, 2010 4:51 AM To: [email protected] Subject: Newbie problem Hi , I just want to know how to pass two parameters to a @POST annotated method. Here is the header of the method @SuppressWarnings("unchecked") @POST @Path("/insert/doc1") @Consumes( { "application/json", "application/xml", "text/xml" }) @Produces( { "application/json", "application/xml", "text/xml" }) public Response MyMethodToInsert(ObjectType1 object_1, ObjectType2 object_2 ) { .... } Thanks.
