Forum Discussion
- rupert_andersonValued Contributor
Hi,
Where you say generate java code, I take it you mean generate java service skeleton code based on your WADL definition?
There is an option in SoapUI to generate code from a WADL i.e. described at
http://www.soapui.org/rest-testing/code-generation.html
But, SoapUI's wadl2java option seems to be intended to wrap the classic wadl2java i.e. the one at this link https://wadl.java.net/, which is pretty old and only generates java client code based on the WADL.
I rarely find myself working with WADL defined services these days, but if I were then I would use the Apache CXF wadl2java option - see http://cxf.apache.org/docs/jaxrs-services-description.html#JAXRSServicesDescription-wadl2javacommandlinetool
This CXF based approach definately works, as I covered in in a recipe in the first chapter of my book. You just need to download Apache CXF, and then you can run the bundled wadl2java command against your WADL to generate a JAX-RS interface and skeleton implementation for your service.
Hope this helps,
Cheers,
Rupert