![[8.5.5.4 or later]](../../images/ng_v8554.gif)
wadl2java command
Use the wadl2java command to generate Java™ API for RESTful Web Services (JAX-RS) resources from a Web Application Description Language (WADL) file in a web service application.
Important: Applicable to Liberty
The command has the same function as the
Generate JAX-RS Service from WADL dialog.Syntax
wadl2java.bat -p <package_name> -resource <name_of_generated_code> -d <output_direcxtory> -impl
Options
- -p
- Specifies the Java package of the generated code.
- -resource
- Specifies the simple class name to use for the generated code.
- -d
- Specifies the output directory for the generated JAX-RS resource.
- -impl
- Specifies that a dummy service implementation is generated. This option is implicitly turned on in the wizard.