Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restful service in .NET with WADL instead of WSDL

I used WCF to create a restful web service in .NET, by means of a .svc file. The web application automatically produces a WSDL file. AFAIK, the WADL is more natural for a restful web service.

How could I create a restful service in .NET (preferably with wcf) that produces a WADL description?

Note An answer like "RTFM" is accepted, as long as you indicate a suitable manual/tutorial.

like image 627
lmsasu Avatar asked Sep 21 '10 07:09

lmsasu


People also ask

What is the equivalent of WSDL in REST?

WADL is the REST equivalent of SOAP's Web Services Description Language (WSDL), which can also be used to describe REST web services.

What is the difference between WADL and WSDL?

WSDL is an XML language for describing web services. Used to describe SOAP-based web services. WADL is an XML file-format . It is an XML vocabulary for expressing the behavior of HTTP resources.

Do restful services have WSDL?

HI, REST doesn't require WSDL. You will only need endpoints and HTTP methods. Hope this helps and answers your query. SOAP uses WSDL for communication between consumer and provider, whereas REST just uses XML or JSON to send and receive data.

Can WADL be used for REST services in SOAP UI?

SoapUI Open Source works with RESTful web services on the base of their definitions: WADL or Swagger. You can explore the service definitions, create and execute individual test requests, and create functional test cases and test suites.

What is a WADL in REST?

The Web Application Description Language (WADL) is an XML-based file format that describes your REST web services application. By default, a basic WADL is generated at runtime and can be accessed from your REST web service by adding a GET to the /application. wadl resource at the base URI of your REST application.


2 Answers

This is an old question but having consumed restful services with WADLs they do offer some value. You can import them straight into SOAPUI and it will build a test suite for you automatically. Secondly they tend to contains all the required XSDs for XML based services and are useful for automatically building serialisable classes that your endpoints accept and receive.

like image 90
Ben Robinson Avatar answered Sep 28 '22 16:09

Ben Robinson


Looks like REST Describe & Compile should do the trick.

On the WADL developer site Marc Hadley maintains a command line tool named WADL2Java. The ambitious goal of REST Describe & Compile is to provide sort of WADL2Anything. So what REST Describe & Compile does is that it:

  • Generates new WADL files in a completely interactive way.
  • Lets you upload and edit existing WADL files.
  • Allows you to compile WADL files to source code in various programming languages.
like image 20
Jeff Swensen Avatar answered Sep 28 '22 17:09

Jeff Swensen