webservice.js
webservice.js copied to clipboard
Add support for WSDL / WADL Generation
from email
In addition to being able to describe web-service entry points as JSON, we also need to support WSDL and WADL formats.
See:
http://en.wikipedia.org/wiki/Web_Application_Description_Language http://en.wikipedia.org/wiki/Web_Services_Description_Language
To properly implement this would require a complete rebuild of the current module reflection. If you didn't want to do this, you could, in theory, write a simple function that transformed the current routing table + JSON schemas into both the WSDL and WADL formats.
I will accept non-breaking patches for either solution.
Since I'm the one that bugged Marak about this, I'll add that a work-around, quite satisfactory, is to submit a sample URL path to: http://tomayac.de/rest-describe/latest/RestDescribe.html
The site has options for adding input, output descriptions and the like, and returns valid WADL.