Hi On 18/10/13 13:39, Marcel Stör wrote:
Are there known limitations for the "/services" and "?_wadl" auto doc generation features when CXF serves both JAX-WS and JAX-RS?[Context] - CXF 2.7.5 - *1* CXF Servlet mapped to /* in web.xml - JAX-WS endpoints like <jaxws:endpoint id= implementor= wsdlLocation= address="/projection/1"> - JAX-RS server like so <jaxrs:server id= address="/"> <jaxrs:serviceBeans> <ref bean="taxV1RestService" /> - JAX-RS server like so @Path("/tax/v1") public class TaxV1RestService { @Path("supported-kernel-years") ... [Problem] http://server/services returns the JAX-WS service list. That comes not unexpected. http://server/tax/v1/services also returns the JAX-WS service list although /tax/v1 is the root path to a JAX-RS service. http://server/tax/v1/supported_kernel_years?_wadl does not produce the WADL of the JAX-RS endpoint but hits our custom interceptors and returns [#document: null] in the end. Do I need two CXF Servlets in web.xml to have auto doc generation play nice?
I'm thinking at the moment that the fact the addresses of both endpoints overlap completely causes the issue, can you move "/tax" from the root @Path to jaxrs:server/@address and have only @Path("/v1") and see what happens ?
Thanks. Sergey
Regards, Marcel
-- Sergey Beryozkin Talend Community Coders http://coders.talend.com/ Blog: http://sberyozkin.blogspot.com
