Reputation: 865
WADL URL : http://localhost:8080/RestfulSample/Restful?_wadl
I need to generate the rest client using CXF from the above WADL URL.
Questions :
I seen many questions related to this, but it seems to be too older and not useful for me - It will be appreciated if i could get any response here.
Thanks,
Upvotes: 6
Views: 6386
Reputation: 941
There are many ways to generate the rest client, some tied to IDEs like eclipse , IntelliJ which are available as plugins. However it's not an approach that's cuts across environments. The recommended way is to tie the code generation to project build / life cycle tool like maven, gradle. In this regard CXF is pretty cool and has an awesome MAVEN plugin which has good coverage and generate jax-rs code. It's easy to setup. Here's the reference link: http://cxf.apache.org/docs/jaxrs-services-description.html#JAXRSServicesDescription-wadl2javaMavenplugin
Do give it a try and share your thoughts.
Upvotes: 1