Originally posted by vinay ravaranch:
can you send me the procedure to build a simple web service using REST?
You have to actually
design an actual RESTful web service before you can build it. And Resource-Orientation is different from Object-Orientation.
Restful Web Services is in excellent resource for that. It for example outlines the design steps for a read/write resource:
First
Figure out the data set Split the data set into resources Then for each resource
Name the resources with URIs Expose the subset of the uniform interface Design the representation(s) accepted from the client Design the representation(s) served to the client Link the resource to existing Resources (using hypermedia links and forms) Consider the typical course of events: what's supposed to happen? Consider error conditions: what might go wrong? Basically there is precious little that Jersey (JSR-311) can teach you about RESTful web services. You'll have to be well versed in the RESTful principles and practices and you'll need to know and understand the HTTP protocol (
HTTP: The Definitive Guide) pretty well, better that most people who build regular web sites. Once you understand all that, you can use Jersey (or RestLet) to implement the RESTful service in Java - either framework does not guarantee that you will create a genuinely RESTful Web service just like Java can't guarantee that you will implement a genuinely Object-Oriented solution.
[ November 14, 2008: Message edited by: Peer Reynders ]