I created a hello world REST service and now I d like to generate the WADL file.
I looked around and saw that I can do so by calling :
http://localhost:8090/application.wadl
However I dont get anything in my case. I am using Jersey 1.7 with Eclipse Indigo and running on Apache 7
I also tried calling :
http://localhost:8090/<myapplicattion_name>.wadl
but still no result.
Is this feature supported by Jersey 1.7? If yes what do i do wrong?
The web.xml file looks like this:
Thank you
The Web Application Description Language (WADL) is an XML-based file format that describes your REST web services application. By default, a basic WADL is generated at runtime and can be accessed from your REST web service by adding a GET to the /application. wadl resource at the base URI of your REST application.
A Web Application Description Language (WADL) document is a machine-readable XML description of HTTP-based web applications (typically REST web services). WADL models the resources provided by a service and the relationships between them.
WADL is the language instructed for explaining the traits or segments of HTTP web solutions/applications. Description of the app's all HTTP resources alongside their correlations and dependencies can be provided using it.
What is the name of your app in Apache, i.e., "context"? Assume the name is "restApp". Try this:
http://localhost:8090/restApp/application.wadl
Or, if you servlet mapping is:
<servlet-mapping>
<servlet-name>RESTService</servlet-name>
<url-pattern>/company/rest/*</url-pattern>
</servlet-mapping>
..it would be:
http://localhost:8090/restApp/company/rest/application.wadl
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With