Are you developing the JAX-RS annotated class yourself? If not to read further, but if so: why not implement JAX-RS and JAX-WS? This is relatively easy using, for example, CXF.
I have a sample project here: https://trac.nbic.nl/brsp201017/browser/tags/inchi2image-java/inchi2image but more (and better!) Samples and tutorials are downloaded there if you want to implement them together.
What I did was write an interface that I annotated using JAX-WS javax.jws.WebService and javax.jws.WebParam , and implement this interface in a class annotated with JAX-RS javax.ws.rs.Path , javax.ws.rs.GET etc. The only difficult task is to get the right applicationContext.xml and web.xml to use, but this is easy if you have an example.
I am not saying what I did, this is a good example, but it works in my case. If for some reason this does not correspond to your question, let me know and I will try to update my answer.
source share