What is RESTful web service (Introduction to RESTful web services)
REST stands for Representational State Transfer. RESTful web services are made to work best for Web based applications.These are lightweight and fast to access.
REST uses HTTP(Stateless communication) protocol for client and server communication .The client can access the resource using URIs (Uniform Resource Identifiers).
URI is the name and address of a resource.
RESTful web services are designed based on the below major concepts .
Interacting with resource using URI:
All the clients will identify and access RESTful web service resources using target URIs.which provide a global addressing space for resource and service discovery.
Any client can manipulate (create, read, update, delete) the RESTful web service resource using fixed set of operations like below .
GET :- Retrieves the current state of a resource in some representation.
PUT :- Creates a new resource.
POST :- It transfers a new state onto a resource.
DELETE :- Which can deleted an existing resource.
Clients can access the resources in a variety of formats like HTML, XML, plain text, PDF, JPEG, JSON, and others.
Metadata about the resource is available and useful to control caching, detect transmission errors, negotiate the appropriate representation format and perform authentication or access control.
Stateful interactions using hyperlinks:
Every client interaction with the RESTful web service resource is stateless . To get Stateful interaction,use explicit state transfer techniques like URI rewriting, cookies and hidden form fields .
|Related Posts :|
|How to create WCF web service in C# .NET ( visual studio 2013 )|
|How to call java SOAP web service in php ( php web service client )|
|How to create a java client to call RESTful web service JAX-RS (Jersey )|
|Example java RESTful web service for xml response (JAX-RS , Jersey)|
|Example for (media type) Json in RESTful web service ( Jersey )|
|Example for (media type) text html in RESTful web service ( Jersey )|
|Example for (media type) text plain in RESTful web service ( Jersey )|
|Java RESTful web service example in maven using JAX-RS|