title: Web Application Description Language
text: # Web Application Description Language
  
  The Web Application Description Language (WADL) is a machine-readable XML description of HTTP-based web services. WADL models the resources provided by a service and the relationships between them. WADL is intended to simplify the reuse of web services that are based on the existing HTTP architecture of the Web. It is platform and language independent and aims to promote reuse of applications beyond the basic use in a web browser. WADL was submitted to the World Wide Web Consortium by Sun Microsystems on 31 August 2009, but the consortium has no current plans to standardize it. WADL is the REST equivalent of SOAP's Web Services Description Language (WSDL), which can also be used to describe REST web services.
  
  ## Format
  
  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.
  
  ## Example
  
  The following listing shows an example of a WADL description for the Yahoo News Search application.
  
  ## Generate WADL or generate code from WADL
  
  ### Java
  
  There are multiple tools to generate java code from an existing WADL:
  
  * Apache CXF
  * Java API for RESTful Web Services, and its reference implementation, Jersey
  