Hitul Mistry
Hitul Mistry

Reputation: 2275

In soap there is WSDL for communication but in rest what is there ?

In SOAP there is WSDL for communication. I read in blogs that WSDL 2.0 supports REST but it is not properly define the REST so is there any equivalent for REST ? I'm doing communication using JSON data between client and server so i need something that properly fit for communication so is there is something for this ?

Upvotes: 1

Views: 337

Answers (3)

raoadnan
raoadnan

Reputation: 293

I would rather stay away from using WADL or any other descriptive languages, when it comes to REST style. RESTful services are fundamentally well-defined and self-descriptive in nature, hence the name Representational State Transfer. Given that they adhere to the HTTP vocabulary (CRUD) and payload structure can be any character-set (raw, JSON, XML. etc.), there is no need for any standard descriptive language.

This is the fundamental shift from SOAP based services, where application developers need to worry about describing the service interfaces in WSDL for discovery and other purposes.

Upvotes: 0

Hitul Mistry
Hitul Mistry

Reputation: 2275

In real WSDL can be used for REST but in reality it is not best fit for REST.

Upvotes: 0

Eugene Osovetsky
Eugene Osovetsky

Reputation: 6541

There are different proposals in the industry, such as WADL (see http://en.wikipedia.org/wiki/Web_Application_Description_Language ), but unfortunately there is no commonly accepted REST metadata standard yet.

Upvotes: 2

Related Questions