Skip to Content
RESTful Java Web Services - Third Edition
book

RESTful Java Web Services - Third Edition

by Balachandar Bogunuva Mohanram
November 2017
Intermediate to advanced
420 pages
10h 29m
English
Packt Publishing
Content preview from RESTful Java Web Services - Third Edition

Generating a Java client from WADL

You can generate the Java client for a WADL file by using the wadl2java tool. To download the ZIP file containing wadl2java, go to https://github.com/javaee/wadl.

After downloading the ZIP file, perform the following steps:

  1. Extract the contents and set the path to the bin folder that contains the wadl2java.bat file (for example, <wadl-dist-1.1.6>/bin).
  2. Set JAVA_HOME pointing to a valid JDK home folder.
  3. Now, execute wadl2java as follows:
wadl2java -o outputDir -p package [-a] [-s jaxrs20] [-c customization]  outputfile.wadl 

Here is a brief description of the arguments used for wadl2java:

  • -o outputDir: This argument specifies the target folder for storing the generated client source
  • -p package: This argument ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

RESTful Java Web Services, Second Edition

RESTful Java Web Services, Second Edition

Jobinesh Purushothaman
Java Web Services

Java Web Services

David A Chappell, Tyler Jewell

Publisher Resources

ISBN: 9781788294041Supplemental Content