how to get the wadl(description of the restful service which i want to use)
posted 3 years ago
Hey, i am using some of the restful services in my web application where i am calling these services.
I am able to call and get proper response.
The issue is i have to write a .xsd which will describe the web service(similar to what we have in soap -i.e wsdl)
Can someone please tell me how i would describe it and how i can wrie my .xsd?
posted 2 years ago
Well with SOAP, at least Axis2, WSDL is built automatically and served to clients together with the WebService.
REST is just an architeture, so it doesn't define how to serve the WADL. If the tool you're using to create your REST WebService doesn't create the WADL for you as Axis2 does, you'll have to do it manually, or use another tool.
To serve it to clients, in Eclipse you could just add reference to it in web.xml together with some jsp that are created automatically.