The code college
Sunday, March 4, 2012
How to define a service as REST based in WCF ?
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
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment