在 VB.NET 中构建 REST 服务的教程?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4107645/
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
Tutorial for building a REST service in VB.NET?
提问by Jarrette
I cannot figure out how to build a REST API web service for VB.NET. I can't find any tutorials on the internet and the Microsoft templates only come in C#.
我不知道如何为 VB.NET 构建 REST API Web 服务。我在 Internet 上找不到任何教程,而且 Microsoft 模板仅在 C# 中提供。
Anyone have any links that could help me out?
任何人都有任何可以帮助我的链接?
回答by alundy
Update: ASP.NET Web API is now the best way of creating a REST service for .NET, there are plenty of tutorials online: http://www.asp.net/web-api
更新:ASP.NET Web API 现在是为 .NET 创建 REST 服务的最佳方式,网上有很多教程:http: //www.asp.net/web-api
Pre-ASP.NET Web API answer: I also found there to be a lack of documentation on this. I mostly followed thistutorial, which can be easily understood and thus implemented in VB.Net.
Pre-ASP.NET Web API answer:我还发现缺乏这方面的文档。我主要遵循本教程,它很容易理解,因此可以在 VB.Net 中实现。
There are also quite a few decent templates of WCF REST (VB.Net) that can be downloaded via Online Templates in Visual Studio. You might want to look at WCF REST Service Template 40(VB).
还有很多不错的 WCF REST (VB.Net) 模板,可以通过 Visual Studio 中的在线模板下载。您可能想查看WCF REST 服务模板 40(VB)。
There's also the WCF REST Starter Kit Preview 2on Codeplex.
Codeplex上还有WCF REST Starter Kit Preview 2。

