The example shows, how to generate a customized WADL for you application
Build the project, generate the resourcedoc.xml with javadoc and generate the wadl file:
$ mvn compile javadoc:javadoc com.sun.jersey.contribs:maven-wadl-plugin:generate
Afterwards have a look at the target/classes/application.wadl
and at these artifacts:
If you're on unix and have xsltproc installed you can simply run mvn package
$ mvn package
and afterwards have a look at the generated target/application.html
If you want to start jersey with the resource classes of this application so that you can add, read and update items just run mvn exec:java:
$ mvn exec:javaThe customized WADL should be available at http://localhost:9998/application.wadl
A new item could be added by issuing the following command using curl
curl -X POST --data '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><item xmlns="http://www.example.com">foo</item>' -H Content-Type:application/xml -i http://localhost:9998/items |