How can I generate WADL for REST services
Asked Answered
L

3

38

I have a web application providing more than 30 REST services (using Jersey) to clients. Is it possible to automatically create a WADL document for my application?

I need this, so that I can have it configured in SoapUI for testing various scenarios and save it for later use.

Lauraine answered 13/9, 2012 at 12:8 Comment(2)
Jersey will do that too. wikis.oracle.com/display/Jersey/WADLDonia
if you are using jersey then url to wadl would be localhost:8080/applicationname/application.wadlMoisten
D
25

If you are using Jersey then url to wadl would be something like

http://localhost:8080/applicationname/application.wadl

You may need to add the resource base into the url e.g.

http://localhost:8080/applicationname/resources/application.wadl

Donia answered 25/9, 2012 at 22:26 Comment(2)
In jersy who will create this WADL, if it is automatically generated then what environment and API needed for this ?Pasto
I think it needs to be specified as a parameter to your build system (e.g. in the pom.xml file for Maven). https://mcmap.net/q/411281/-wadl-generation-toolFilberte
T
9
http://{host}:{port}/{context_root}/{resource}/application.wadl 

substitute values for host, port, context root and resource.

Tarttan answered 14/4, 2014 at 3:11 Comment(0)
T
7

In the past I've used Enunciate (GitHub repository).

It's a build-time tool that generates Interface Definition Documents (WADL, WSDL, etc) automatically for you. It's really easy to integrate it in your Maven build.

Trigonometry answered 13/9, 2012 at 13:16 Comment(2)
Yes, and it also integrates with Spring which separate well the processing layer (@Service) from the exposition layer (REST, SOAP). The enunciate documentation of the service is very well generated.Buchan
The codehaus link is dead. The code is on GitHub github.com/stoicflame/enunciate and it links to the site enunciate.webcohesion.comEster

© 2022 - 2024 — McMap. All rights reserved.