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.

2

3 Answers 3

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

2
  • 6
    In jersy who will create this WADL, if it is automatically generated then what environment and API needed for this ?
    – Atul Kumar
    Sep 21, 2015 at 5:23
  • I think it needs to be specified as a parameter to your build system (e.g. in the pom.xml file for Maven). stackoverflow.com/a/14742322/714112 Jul 12, 2017 at 21:30
9
http://{host}:{port}/{context_root}/{resource}/application.wadl 

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

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.

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.
    – рüффп
    Aug 30, 2013 at 12:44
  • 4
    The codehaus link is dead. The code is on GitHub github.com/stoicflame/enunciate and it links to the site enunciate.webcohesion.com Nov 9, 2015 at 14:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.