The service is described using a set of resource elements. Each resource contains param elements to describe the inputs, and method elements which describe the request and response of a resource. The request element specifies how to represent the input, what types are required and any specific HTTP headers that are required. The response describes the representation of the service's response, as well as any fault information, to deal with errors.
The following listing shows an example of a WADL description for the Yahoo News Search application.
There are multiple tools to generate java code from an existing WADL:910
Sun Microsystems (31 August 2009). "Web Application Description Language: W3C Member Submission 31 August 2009". World Wide Web Consortium. Retrieved 12 August 2012. /wiki/Sun_Microsystems ↩
World Wide Web Consortium (14 October 2009). "Team Comment on the "Web Application Description Language" Submission". World Wide Web Consortium. Retrieved 12 August 2012. /wiki/World_Wide_Web_Consortium ↩
Lawrence Mandel (29 May 2008). "Describe REST Web services with WSDL 2.0: A how-to guide". IBM. Retrieved 12 August 2012. http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/ ↩
github WADL project https://javaee.github.io/wadl/ ↩
Apache CXF https://cxf.apache.org ↩