Windows服务和Web服务之间的区别 [英] Difference between Windows Services and Web Services

查看:240
本文介绍了Windows服务和Web服务之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以详细解释Windows服务和Web服务之间的区别。使用一个优于另一个的优势以及它们适用的场景以及它们如何实施。



谢谢

Can anyone explain in details the Difference between Windows Services and Web Services. The Advantage of using one over the other and what Scenario are they applicable and how can they be implemented.

Thanks

推荐答案

你无法将Windows服务与你建议的网络服务进行比较,它们实际上是不同的东西。



网络服务本质上是一个网站。您使用http协议调用Web服务的方法,然后向您发送结果。

了解更多信息详细信息请参阅Web服务维基百科条目。 [ ^ ]



Windows服务是一个没有界面的应用程序,如果没有自己设置,就不能与它进行通信,例如.NET远程处理。

有关详细信息,请参阅Windows服务维基百科条目。 [ ^ ]
You can't compare a windows service with a web service like you suggest, they are actually who different things.

A web service is essentially a website. You use the http protocol to call a method of your webservice which in turn sends you the result.
For more details see the Web service Wikipedia entry.[^]

A windows service is an application with no interface, you cannot communicate with it without setting that up for yourself, like .NET remoting.
For more details see the Windows service Wikipedia entry.[^]


XML Web服务是一个实现程序逻辑并提供单独功能的组件应用。这些应用程序使用标准协议(如HTTP,XML和SOAP)来访问功能。 XML Web服务使用基于XML的消息传递来发送和接收数据,这使异构应用程序能够相互交互。您可以使用XML Web服务来集成以不同编程语言编写并部署在不同平台上的应用程序。此外,您还可以在Intranet和Internet上部署XML Web服务。虽然互联网使用户更接近组织,但XML Web服务允许组织集成他们的应用程序。





Windows服务启动之前很久用户登录系统(如果已设置为在启动过程中启动)。 Windows服务也可以设置为需要用户手动启动它?终极定制! Windows服务作为后台进程运行。这些应用程序没有用户界面,这使它们非常适合不需要任何用户交互的任务。您可以在运行Windows 2000,Windows XP或Windows NT的任何服务器或计算机上安装Windows服务。您还可以指定Windows服务在特定用户帐户的安全上下文中运行,该帐户与登录的用户帐户或默认计算机帐户不同。例如,您可以创建一个Windows服务来监视性能计数器数据并对数据库中的阈值做出反应。
An XML Web service is a component that implements program logic and provides functionality for separate applications. These applications use standard protocols, such as HTTP, XML, and SOAP, to access the functionality. XML Web services use XML-based messaging to send and receive data, which enables heterogeneous applications to inter-operate with each other. You can use XML Web services to integrate applications that are written in different programming languages and deployed on different platforms. In addition, you can deploy XML Web services within an intranet as well as on the Internet. While the Internet brings users closer to organizations, XML Web services allow organizations to integrate their applications.


A Windows service starts much before any user logs in to the system (if it has been setup to start at boot up process). A Windows service can also be setup in such a way that it requires a user to start it manually ? the ultimate customization! Windows services run as background processes. These applications do not have a user interface, which makes them ideal for tasks that do not require any user interaction. You can install a Windows service on any server or computer that is running Windows 2000, Windows XP, or Windows NT. You can also specify a Windows service to run in the security context of a specific user account that is different from the logged on user account or the default computer account. For example, you can create a Windows service to monitor performance counter data and react to threshold values in a database.


两者都是两个完全不同的概念,具有完全不同的用途,无法进行比较。



唯一的相似之处可能是它们都没有UI。
Both are two totally different concepts with totally different uses and just cannot be compared.

The only similarity perhaps is that none of them have an UI.


这篇关于Windows服务和Web服务之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆