WebService 以及数据库和用户管理
我是 WebServices 的新手。
我想创建(非常简单)带有数据库(可能是 MS-SQL)和用户身份验证(登录、注销)的 WebService 应用程序,以及一些在返回任何结果之前检查用户是否登录的功能。
我发现这个 http://www.codeproject.com/KB/cpp/WebServiceAuthentication.aspx< /a>
我不希望任何人替我做我的工作。我只需要一些关于如何开始的提示。 我将使用 Microsoft Visual Studio 2010 Ultimate。
如何在 winforms 应用程序中使用此 Web 服务?
I'm new to WebServices.
I want to create (very simple) WebService application with database (maybe MS-SQL) and user authentication (log in, log out) and some function that check is user is logged in before returning any result.
I found this http://www.codeproject.com/KB/cpp/WebServiceAuthentication.aspx
I don't want anyone doing my job for me. I just need some hints about how to begin with that.
I'll be using Microsoft Visual Studio 2010 Ultimate.
How can I use this webservice in winforms application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
传统的 Web 服务 (.asmx) 已让位于新的 WCF (Windows Communication Foundation) 服务 (.svc)。这些对一切都有更多的粒度控制,这是好事也是坏事。如果您还不熟悉 Web 服务,我会建议您首先尝试正确理解这些概念 - 就像它如何工作的高级架构(通信、SOAP 和所需的协议)一样。
然后专门针对 Visual Studio 以及如何创建它们,MSDN 有一个很好的入门教程: http ://msdn.microsoft.com/en-us/library/t745kdsh.aspx (这是用传统的 .asmx 方式完成的,一点也不坏)
您拥有的 codeproject URL 是很好,但我认为它需要您首先了解基本概念......并且它专门用于制作身份验证 Web 服务。我的看法是,如果您知道如何创建“a”Web 服务,那么进行身份验证将非常容易。
如果您对 WCF 服务感兴趣(我建议您稍后再关注),这也是一个很好的参考: http://msdn.microsoft.com/en-us/library/ms734712.aspx
Traditional Webservices (.asmx) have given way to the new WCF (Windows Communication Foundation) Services (.svc). These have a lot more granularity control over everything, which is a good and bad. If you aren't familiar with webservices already, I would say try to get the concepts right first - as in the high level architecture of how it works (communication, SOAP, and the protocols needed).
Then specifically for visual studio and how to create them, MSDN has a good starter tutorial: http://msdn.microsoft.com/en-us/library/t745kdsh.aspx (this is done the traditional .asmx way, which is not bad at all)
The codeproject URL you have is fine, but I think it requiures that you know the basic concepts first... and it is specifically for making an authentication web service. My take is if you know how to create 'a' webservice, then making the authentication ws will be very easy..
If you are interested in WCF services (which I recommend you hold of till later) this is a good reference as well: http://msdn.microsoft.com/en-us/library/ms734712.aspx