I am passing an Employee Object Form Client in RestFul webservices Jaxrs2/jersy2
@GET
@Path("{empObj}")
@Produces(MediaType.APPLICATION_XML)
public Response readPK(@PathParam("empObj")Employee empObj) {
//do Some Work
System.out.println(empObj.getName());
return Response.status(Response.Status.OK).entity(result).build();
}
how can achive this object using GET method?? thanx in advance