Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I generate WADL for REST services

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.

like image 655
basiljames Avatar asked Sep 13 '12 12:09

basiljames


People also ask

What is a WADL in REST?

WADL is the REST equivalent of SOAP's Web Services Description Language (WSDL), which can also be used to describe REST web services.

What is the difference between WSDL and WADL?

WADL is equivalent to SOAP's web services description language. WSDL is a machine-readable description with the current version of 2.0. 05. It is lightweight, easy to understand and write as compared to WSDL.


2 Answers

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

like image 154
Bill Avatar answered Oct 03 '22 16:10

Bill


http://{host}:{port}/{context_root}/{resource}/application.wadl  

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

like image 38
user991802 Avatar answered Oct 03 '22 18:10

user991802