C# WCF 的 RESTful Web 服务示例
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/980173/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Samples for RESTful web services for WCF
提问by George2
I am new to RESTful web services in WCF, but not new to WCF. I want to develop some simple RESTful web services in WCF which manually be accessed from a browser. Any good samples or documents to recommend? I am using C#.
我是 WCF 中 RESTful Web 服务的新手,但对 WCF 并不陌生。我想在 WCF 中开发一些简单的 RESTful Web 服务,这些服务可以从浏览器手动访问。有什么好的样品或文件可以推荐吗?我正在使用 C#。
采纳答案by Luke Puplett
Aaron Skonnard of PluralSight has a bunch of great little screencasts on Channel9 and is probably the best intro I've seen - you'll probably do well to have some WCF experience first - those coming from the world of SOAP will pick it up easier.
PluralSight 的 Aaron Skonnard 在 Channel9 上有很多很棒的小截屏视频,这可能是我见过的最好的介绍——你可能会先拥有一些 WCF 经验——那些来自 SOAP 世界的人会更容易上手。
http://channel9.msdn.com/shows/Endpoint/endpointtv-Screencast-Building-RESTful-Services-with-WCF/
http://channel9.msdn.com/shows/Endpoint/endpointtv-Screencast-Building-RESTful-Services-with-WCF/
Also, stick this in Bing
另外,将此贴在 Bing 中
restful site:msdn.com
宁静的网站:msdn.com
UPDATE
更新
This answer still gets votes, so I thought it would be good to update it with recent changes. Basically, the WCF team have joined forces with the ASP.NET MVC community to bring REST to the Microsoft stack via ASP.NET MVC 4 Web API, so I guess the WCF REST stuff will not be developed from 2012 on.
这个答案仍然得到投票,所以我认为最好用最近的变化来更新它。基本上,WCF 团队已经与 ASP.NET MVC 社区联手,通过 ASP.NET MVC 4 Web API 将 REST 引入 Microsoft 堆栈,所以我猜 WCF REST 的东西不会从 2012 年开始开发。
http://wcf.codeplex.com/wikipage?title=WCF%20Web%20API%20is%20now%20ASP.NET%20Web%20API
http://wcf.codeplex.com/wikipage?title=WCF%20Web%20API%20is%20now%20ASP.NET%20Web%20API
回答by Toran Billups
回答by Sandeep Kumar
回答by Dinesh Kumar
Some one wrote a short blog post showing how to build REST services using WCF (sample code included).
有人写了一篇简短的博客文章,展示了如何使用 WCF 构建 REST 服务(包括示例代码)。
http://www.codeproject.com/Articles/201901/CREATE-RESTful-WCF-Service-API-Using-POST-Step-By
http://www.codeproject.com/Articles/201901/CREATE-RESTful-WCF-Service-API-Using-POST-Step-By