开发者

What is the difference between Rest Web Service & rest enabled wcf service?

I have developed an rest enable wcf service by using the following link

http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/simplerestservice11172009221218PM/simplerestservice.aspx

Now I want to know is there any difference between rest enabled wcf service (or restful web service) & rest web service ? If there is any difference then what is that ? If there is difference the can you provide me any link (which represents steps visually as in above link) through which I can develop rest we开发者_Python百科b service ?


I do not know what you mean about the "REST web service" but basically you can do RESTful web services in .NET in two ways:

1) WCF which you have done although in .NET 4.0 there is no need fo .svc file

2) Using ASP.NET MVC which is RESTful anyway and you have to retun JsonResult or XmlResult.


The R in REST stands for Resource. The idea is that there are basically 4 methods: GET, PUT, POST, and DELETE, and they all operate on RESOURCES, i.e., NOUNS. The article you reference uses the REST architecture and WCF to produce a non-rest-ful example, in that the author is using "VERBS".

Here is an article that better explains what REST is and how WCF allows you to implement in it.

http://msdn.microsoft.com/en-us/library/dd203052.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜