Hi I've just run cxf-java2wadl-plugin on my project the resulting wadl looks like this:
<application xmlns="http://wadl.dev.java.net/2009/02" xmlns:xs=" http://www.w3.org/2001/XMLSchema"> <grammars/> <resources base="/"> <resource path="/" id="dk.netdesign.osgidialer.osgi.dialer.webservice.spec.SimpleEndPoints"> <resource path="campaigns"> <method name="GET" id="GetAllCampaignsStatus"> <response> <representation mediaType="application/json"/> </response> </method> </resource> .... (snip stop) JAVA Rest endpoint: public interface SimpleEndPoints { @Path("/campaigns") @GET @Produces(value = MediaType.APPLICATION_JSON) public List<FullCampaign> GetAllCampaignsStatus(); Now I would have expected that the WADL would look something like this: <application xmlns="http://wadl.dev.java.net/2009/02" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <grammars> ...JAXB representation of FullCampaign.. </grammars> <resources base="/"> <resource path="/" id="dk.netdesign.osgidialer.osgi.dialer.webservice.spec.SimpleEndPoints"> <resource path="campaigns"> <method name="GET" id="GetAllCampaignsStatus"> <response> <representation type="xc:FullCampaign" mediaType="application/json"/> </response> </method> </resource> .... (snip stop) Just like the example on w3c: https://www.w3.org/Submission/wadl/#x3-34000A If there are no links between resource methods and parameters when how usefull can a wadl be then? -- Best regards / Med venlig hilsen Nino Martinez
