Hi Markus
On 13/12/11 08:31, Markus Schnelle wrote:
Hello,
we are using the Apache CXF 2.5 release to implements a restful
webservice, which works fine.
But we're missing in the wadl the paramters for the request and the
return type of response by a post and put requests.
Is this feature only working for @QueryParam, @PathParam and @FormParam?
Here an example from the wadl.
<resource path="/addToSelection">
<method name="PUT">
<request>
<representation mediaType="text/xml"/>
</request>
<response>
<representation mediaType="text/xml"/>
</response>
</resource>
wadl:representations will get links to schema elements auto-created only
if JAXB beans which will produce namespace-qualified XML.
If it is not JAXB then other options are available:
http://cxf.apache.org/docs/jaxrs-services-description.html#JAXRSServicesDescription-RepresentingexternalschemasandnonJAXBtypes
Cheers, Sergey
Thanks for the help and Best Regards,
Markus
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com