I have a service layer that I would like to convert into a webservice. However I hate using annotations because they severely limit code reusability in my common base classes. Some webservices use a subset of the objects, and I don't want things exposed for one service to be exposed for another.
I had the same issue with hibernate, however the hbm xml mappings allow me to share the same domain objects and have different mappings for different services, which works great. Is there any kind of rest webservice framework for java that will allow me to describe my api and scheme objects with xml, and still gain the benefits of converting these objects to json/xml etc?