Introduction:
In this article,i am going to explain how to create and perform a restful WCF services using linq asp.net and c#.
Main:
What is REST?
REST is an architectural paradigm in which an application’s state and functionality is divided into resources which in turn is addressable using URIs over HTTP. A REST-based model is stateless, client-server based, cacheable and uses resources that have a common interface and are uniquely addressable.
Resources in a REST-based mode model are used to represent state and functionality and identified using logical URLs. Although REST is based on the stateless HTTP protocol, resources are cacheable — you can also set expiration policies for your cached data. In a typical REST-based model, the client and the server communicates using requests and responses — the client send a request to the server for a resource which in turn sends the response back to the client.
A request in a REST-based model contains an Endpoint URL, a Developer ID, Parameters and the Desired Action. The Endpoint URL contains the complete address of the script. The Developer ID is a key which identifies each request origin and is sent with each request. You can pass Parameters to a REST request just as you do with your method calls in any programming language. The Desired Action in a REST request is used to denote the action to be performed for the particular request.
Sample Rest Service Url,
http://localhost/Data?value=17&action=get&type=emp&keyword=empID
For creating restful services using wcf we need the below,
1.Refer System.ServiceModel.Web Namespace,
2.Add [WebGet] Attribute in Operation Contract for httpget,
3.Add [WebInvoke] Attribute in Operation Contract for httppost,
visit main article,
http://aspdotnetcodesonline.com/asp-net/implementingdevelopingperformingcreating-restful-wcf-services-asp-net-c-linq/
Conclusion:
Hope this helps,
Happy coding.
Join the forum and make money by posting answers or discussing various topics here !

great article