Using Document-First Approach
Many SOAP developers prefer a document-first (or WSDL-first) approach toward developing WS services. After a WSDL document has been created, the code generator produces the boilerplate server and possibly the client code, with the generated interface such as BookStoreJaxrsJaxws in the previous section containing the JAX-WS annotations only.
Attempting to reuse the same interface by adding JAX-RS annotations is not realistic given that the interface will be re-generated the next time the code generator runs. CXF JAX-RS provides an advanced no-annotations feature which can be used to apply the external JAX-RS like model to a given interface or class and turn it into a RESTful resource without modifying it directly. Please check the jaxrs_jaxws_document_first demo in the Talend ESB examples distribution and see how this feature is used.