Currently many popular websites are using it likes of google, flickr.
In this blog will mention about the features of Restful services and how this use a different architectural approach toward creating webservices. We have SOAP architecture and other is REST, major difference SOAP is transport independent protocol while REST embrace HTTP.
# Rest based system are divided into resources and each resource can have multiple representational e.g. Html, Xml, jpeg, flash and every resource has unique address(URI). e.g.
# You can perform operations on resources i.e. HTTP verbs GET,POST,PUT,DELETE and also GET can utilize web caching infrastructure.
# Rest service is stateless i.e. no client context stored on server, we don’t create proxies to consume.
# In Rest service we have flexibility over response structure, good choice to build when client is unknown.
# No metadata.
There are features in WCF 3.5 & in onwards .net frameworks that allow building REST-ful services:
1. Support for URIs.
2. Have services dispatcher for URI and verbs.
3. Support for JSON, RSS, atom , direct POX.
4. Response formatting.
5. Caching support in IIS.
6. ASP.NET routing integration.