REST web services

I think you may have an idea about web services on my previous post about SOAP. In this 
post I'm going to explain about REST.

History of REST

REST was created in 2000 by Roy Thomas Fielding in his PhD dissertation. 

Really what is REST ?

  • REST stands for REpresentational State Transfer
  • REST is an architectural design 
  • It is platform and language independent
  • REST uses HTTP for data transaction
  • REST doesn't contain any inbuilt security, session management and encryption features


Look at the following request by SOAP

POST /InStock HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn

<?xml version="1.0"?>

<soap:Body xmlns:m="">


Look at the same request by REST

Now you can understand how easy that SOAP is.

When to use REST ?

  • Social media servers
  • Mobile services
  • Web chat services
  • Other Social Media platforms

REST in  real life

  • Twitter API
  • Google glass API
  • Flicker 

Advantages of REST

  • Easy to implement and maintain.
  • Data can be manipulated in multiple formats (XML, JSON, XHTML, Plain text).
  • Light weight, fast and low bandwidth is required.
  • High scalability

Disadvantages of REST

  • Only work on top of HTTP protocol.
  • No inbuilt security and authentication mechanism.

REST web services REST web services Reviewed by Ravi Yasas on 10:02 AM Rating: 5

1 comment:

  1. Great information. Lucky me I came across your site by chance (stumbleupon).
    I have saved as a favorite for later!


Powered by Blogger.