Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't REST utilize WSDLs, unlike SOAP?

Tags:

For SOAP web services there is a specification which all request/responses must follow. This specification is in the form of a WSDL document. However for REST web services, why is there no such specification or WSDL? Does this make REST more vulnerable to runtime exceptions because we are not following any specifications?

like image 441
Victor Avatar asked Apr 09 '13 16:04

Victor


People also ask

What is the point of REST Why not use SOAP?

Benefits of REST Over SOAPREST allows a greater variety of data formats, whereas SOAP only allows XML. Coupled with JSON (which typically works better with data and offers faster parsing), REST is generally considered easier to work with. Thanks to JSON, REST offers better support for browser clients.

Why REST is more scalable than SOAP?

REST also makes efficient use of bandwidth, as it's much less verbose than SOAP. Unlike SOAP, REST is designed to be stateless, and REST reads can be cached for better performance and scalability. REST supports many data formats, but the predominant use of JSON means better support for browser clients.

What is the main difference between REST and SOAP?

Representational state transfer (REST) is a set of architectural principles. Simple object access protocol (SOAP) is an official protocol maintained by the World Wide Web Consortium (W3C). The main difference is that SOAP is a protocol while REST is not.

Why is REST less secure than SOAP?

Why is SOAP More Secure? Although SOAP and REST both support SSL (Secure Socket Layer) for data protection, while making the request, SOAP supports Web Services Security (also known as WS- Security or WSS) for enterprise-level protection which is absent in REST Services.


1 Answers

There are bunch of ways to define a RESTful API just like WSDL for SOAP:

  • Google Discovery service format.
  • Mashery IODocs.
  • WADL.
  • Swagger.
  • Apiary.

You can find more info here on my blog post.

like image 157
Praveen Avatar answered Oct 08 '22 19:10

Praveen