How to define a service as REST based in WCF ?

Sunday, March 4, 2012

By adding the WebGet attribute, we can define a service as REST based service that can be accessible using HTTP GET operation.
[ServiceContract]
interface IStock
{
[OperationContract]
[WebGet]
int GetStock(string StockId);
}

www.codecollege.NET|www.interviewsguru.com|The Encylopedia of Web Sites|Blogging and Earning

0 comments

Post a Comment

www.codecollege.NET

Blog Widget by LinkWithin