Web 服务与在服务器上运行的服务有什么区别?
我过去使用过 ASP.NET Web 服务 (.asmx)。但是,我听说过在您可以使用的服务器上运行“服务”的说法。
主要是我很好奇这个“服务”是什么。
它是实际在您可以连接的服务器上运行的 Windows 应用程序吗?
我可以在服务器上创建一个“服务”,以便从客户端 Windows 7 计算机创建直接 TCP/IP 连接吗?此连接是双向的吗?这个连接可以被池化/持久化吗?
I have used ASP.NET Web Services (.asmx) in the past. However, I have heard references to having a "Service" running on a server that you can use.
Mainly, I am curious what this "Service" is.
Is it a Windows Application actually running on the server that you can connect to?
Can I create a "Service" on a server that I could create a direct TCP/IP connection to from a client windows 7 computer? Would this connection be bi-directional? Could this connection be pooled/persistent?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Web 服务是“云”产生之前使用的流行词,大多数人不知道他们在谈论什么..
那里有无数不同的“服务”.. 当您说 ASP.NET Web 服务时,我'我假设您指的是 .asmx 服务文件? (IMO 中的一个可忽略的细节)
对于您的问题:
是的,您可以在 Web 服务器上创建一个“服务”,各种客户端可以通过互联网/内部网访问该“服务”。您甚至可以创建一个完整的“类库”,只能通过来自这些不同客户端的不同“服务”调用来访问。以一种或另一种形式使用“服务”风格架构有很多好处,但是,谷歌有很多好处有关于此的更多信息..
以及您的 TCP / IP 问题..是的。 Web 服务提供不同类型的传输/绑定,包括 TCP、HTTP 等。
有关详细信息:
http://msdn.microsoft.com/en-us/magazine/cc163394.aspx
Web Service was the buzzword used before the "Cloud" was spawned, most people had no idea what they were talking about..
There are a myriad of different "Services" out there.. when you say ASP.NET Web Services, I'm assuming you mean .asmx service files? (a negligible detail IMO)
to your question:
yes, you can create a "Service" on your Web Server that can be accessed by various clients over the inter / intra - net. You can even create an entire "class library" which is only accessible by different "Service" calls from these various clients.. there are lots of benefits to using a "Service" style architecture in one form or another, however, google has loads more info on that..
and to your TCP / IP question.. yes. Web Services provide different kinds transport / bindings including TCP, HTTP, etc..
for more info:
http://msdn.microsoft.com/en-us/magazine/cc163394.aspx
我认为维基百科上的 Windows 服务 可能会给你一些提示......
I think Windows service on wikipedia may give you some hints...