I have a simple WS that is a @PUT
and takes in an object
@Path(\"test\")
public class Test {
@PUT
@Path(\"{nid}\"}
@Consumes(\"appl
You can try something like this
@POST
@Path("/post")
@Consumes(MediaType.APPLICATION_XML)
@Produces(MediaType.APPLICATION_XML)
public Response callWol(WolRequest nid) {
WolResponse response = new WolResponse();
response.setResult(result);
response.setMessage(nid.getValue().getId());
return Response.status(Status.OK).entity(response).build();
}
You can try @PUT instead of @Post as well. Hope this helps