Implements a WADL to Java tool that generates client-side stubs for the resources and methods declared in a WADL file.
Command line usage:
java -jar wadl2java.jar -p package -o directory file.wadl
where:
-p package-o directorycom.example.test and the directory is gen-src then
files will be written to ./gen-src/com/example/test. The directory
dir must exist, subdirectories will be created as required.file.wadlUse as an ant task:
<property name="jaxws.home" value="/path/to/jax-ws/directory" />
<property name="wadl2java.home" value="/path/to/wadl2java/directory" />
<taskdef name="wjc" classname="com.sun.research.ws.wadl2java.WJCTask">
<classpath>
<fileset dir="${jaxws.home}" includes="lib/*.jar" />
<pathelement location="${wadl2java.home}/dist/wadl2java.jar"/>
</classpath>
</taskdef>
<target name="-pre-compile">
<echo message="Compiling the description..." />
<wjc description="file.wadl" package="com.yahoo.search" target="gen-src"/>
</target>
@see WADL Specification