Code Rewind
When its time to find, Hit Rewind
                 
 
 
Remember Me  
Recover Password
 
 Advanced Search
 
 Add to IE Search 
 
 
> Development > Web Development > Languages > ASP.NET => What is REST (Representational State Transfer)
 

Available Files:
You must be signed in to download files.
You can Sign Up here if you are not a member.
Author: Adam Joseph
Level: 3
Date Posted: 09-Feb-2010 (11:14)
Last Updated: 09-Feb-2010 (11:14)
Views: 226
Favorited: 0
Votes:
  -  1 votes
Your vote:
Click to rate Click to rate Click to rate Click to rate Click to rate
(5 Stars)
Rating: 4.00 out of 5


Summary: What is REST?rnrnREST (Representational State Transfer) defines a set of architectural principles by which you can design Web services that focus on a system's resources. REST, which was first introduced by Roy Fielding (Univ. of California, Irvine) in the year 2000, is a simpler alternative to SOAP/WSDL based web services. A web service is said to be ‘RESTful’ when it is implemented using the principles of REST. Over the past couple of years web technology giants have started adopting REST and RESTful services heavily underscoring their significance.

Introduction:
Governing Principles of REST
Since REST is a vast topic by itself, I’m not intending to elaborate on the intricacies and nuances of it here but would like to skim through its basic governing principles. They are:
  • Clients (user agents) interact with resources. Resources are anything that can be named and represented. Each resource can be addressed via a unique URI.
  • Interaction with resources (located through their unique URIs) is performed through the standard set of HTTP verbs (GET, POST, PUT or DELETE) along with the declaration of resource’s media/MIME type (JSON, XML, XHTML, JPG, PNG etc).
  •  Resources are self-descriptive. Each request on a resource contains all information necessary to process that request enabling the services to act as stateless.
  • Resources can contain links to other resources (hyper-media). If the client wants to access related resources, they should be identified in the representation returned. 
Elaboration:
REST and Microsoft
Microsoft is moving many of its own implementation away from RPC technologies such as SOAP and has started embracing REST in the recent years. Microsoft’s WCF architecture has been designed with the capability to expose and consume RESTful services from its release with Framework 3.0. An easy-to-work-with REST programming model (WebServiceHost, WebServiceHostFactory, WebGetAttribute, WebInvokeAttribute, WebHttpBinding, WebHttpBehavior, UriTemplate etc) was added with Framework 3.5 mainly to support AJAX calls. Much more enhancements are expected in the forthcoming releases. Microsoft has also come up with a ‘REST Starter Kit’ to make REST based WCF development easier.
 
Microsoft’s ASP.NET MVC also gives full control of creating RESTful services with a little bit of plumbing code. ASP.NET MVC Controllers can directly return objects and collections, without rendering a view, which makes it quite appealing for creating a REST like API. Depending on who is calling the service, you can return JSON, plain old XML and so on.
 
Microsoft’s .NET Data Services Framework (code name Astoria) also provides a roadmap on how REST type Web services will be designed and deployed in the Microsoft world.
 
Wrap-up
REST is an architectural style but neither a standard nor a toolkit. It’s a refined version of what web already has. REST may not be the best choice always. However, we cannot ignore it considering the current industry trends and its benefits. Hopefully REST will be able to resolve the shortcomings of today’s SOAP based systems.


Version Tracking:

Version 1.0
 
KeyWords: Generic / None (Generic / None);Generic / None (Generic / None);ADO.NET,ASP.NET,WCF (Generic / None);
CR Suggested ASP.NET Articles
 
 
Most Recent Views
 
ASP.NET Interview Questions by Guest (09-Sep-2010 08:55)
Import .CSV File Into MySql Using PHP by Guest (09-Sep-2010 08:49)
Handling KeyPress and KeyDown Events for Datagridview by Guest (09-Sep-2010 08:45)
How to Perform File Operations in .NET by Guest (09-Sep-2010 08:42)
Naming and Casing standards in .NET by Guest (09-Sep-2010 08:22)
 
 Messages: 0, Topics: 0. Post New Message Please login to post a message...
  View
Items per page
Message since
  TOPIC
AUTHOR
VIEWS
REPLIES
LAST POST
No messages boards...

Post New Message      
General Comment News / Info Question Answer Joke / Game Admin Answer
SEARCH ON FORUM
 
 
   
 
 
TOP USERS
 
No top users
 
 
TOP DISCUSSIONS
 
No popular discussions
 
 
SPONSORED ADS
 
 
 
 



 
Registered Members: 1622
Now Browsing: 8
 
Subscribe to newsletter
 
 

 
AtHomeTution
TheBusinessXP
RapidConvert
IT2Max
 








 
About Us  |  Contact Us   |  Privacy Policy  |  Legal Notice  |  Terms and Conditions  |  Help   |  Browse CR   |  Articles  |  Webcasts  |  Ask an Expert   |  Message Boards   |  Downloads  |  Open Arena   |  FAQ | DaniWeb | GetAHelpdesk | ProgTalk
Copyright © 2007 CodeRewind.com. All rights reserved
designed by IT2Max, INC.
 
Execution Time: 2.28 sec