3

like WSDL what is the contract for RESTful service it exposes to client. Are there any java frameworks to create the client automatically for consuming RESTful Services ?

Laxmikanth Samudrala
  • 2,203
  • 5
  • 28
  • 45

4 Answers4

3

In REST your media types and your link relations are your contracts. It is possible you use WADL as a runtime discovery mechanism, but it is far less flexible than using hypermedia based representations.

REST systems should never use something like WADL to generate client proxy classes.

Jmini
  • 9,189
  • 2
  • 55
  • 77
Darrel Miller
  • 139,164
  • 32
  • 194
  • 243
2

Jersey is probably the most popular REST library for Java on the server. They also have client libraries that allow you to consume RESTful services with an example

Rob Di Marco
  • 43,054
  • 9
  • 66
  • 56
1

The RESTful equilivant of a WSDL is a WADL

Easen
  • 296
  • 1
  • 5
0

REST services use what's called "uniform contract" or "uniform interface", which is based on http verbs. Thus, the contract of a REST service is a combination of the uniform interface and the URIs it support. To call a SOAP service we pick an operation and the address specified in the concrete section of that services's WSDL definition.
To call a REST service we pick an http verb and a URI.

Paulo Merson
  • 13,270
  • 8
  • 79
  • 72