I have a WS class using Jersey annotations.
2 different methods that are both bound to the same URL patter
One uses a GET, the other a POST.
Regardless of which method I call, I get back a 405 response.
Exception in thread "main" com.sun.jersey.api.client.UniformInterfaceException: GET http://localhost:8080/filter/1000/config/ returned a response status of 405 Method Not Allowed
I tried switching the POST to a PUT (as according to some information the POST is a hybrid of GET and PUT in terms of how jersey supports it).
I have found examples from Jersey that shows that I should be able to do this. In fact, it's a pretty fundamental part of REST services.
here is code examples to show you what all is happening
— Example of the GET
----- POST Example