WADL (Web Application Description Language) WADLURL is an XML-based format language that provides a machine-readable description of HTTP-based web services, (usually REST Services). This is a sample of WADL, it is the definition for the Google Translator Service. The WADL has to be published online to be imported in MyCocktail.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<application xmlns="[http://research.sun.com/wadl/2006/10">]
<resources base="[http://ajax.googleapis.com/ajax/services/">]
<resource path="language/translate">
<method name="GET" id="translate">
<request>
<param type="xs:string" style="template" name="v" fixed="1.0" />
<param type="xs:string" style="query" name="q"/>
<param type="xs:string" style="query" name="langpair"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
</resources>
</application>
The next dialogue appears when the user selects the “Import Service from WADL” in the menu. Filling the field with the URL where is the WADL file, MyCocktail will retrieve it and transform into a MyCocktail service.
Once the WADL is processed, a new service appears in the Services panel, the number of services generated by MyCocktail depends of the services defined into the WADL.
This is the panel generated automatically from the WADL, and the response retrieved from the service. This panel appears when the service is dragged and droppd from the Services Panel to the Action Panel.
0 Ficheros adjuntos