Web 服务和 Windows 服务之间有什么区别? [英] What are the differences between a web service and a Windows service?

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

问题描述

Web 服务和 Windows 服务之间有什么区别?

What are the differences between a web service and a Windows service?

我的经验主要是使用 Windows 服务,我从未创建过 Web 服务.

My experience has mostly been with Windows services, and I have never created a web service.

Web 服务的行为是否与 Windows 服务相似?
他们可以安排日程、在特定时间运行等吗?
您何时会使用网络服务代替 Windows 服务,反之亦然?

Do web services behave similarly to Windows services?
Can they have scheduling, run at certain times, etc.?
When you would use a web service in place of a Windows service, and vice versa?

推荐答案

它们的不同之处在于两件事.

They're about as different as two things can be.

Windows 服务是一种无需用户登录系统即可运行的应用程序,通常用于在机器上处理一些无需用户干预即可使用的数据.

A Windows service is an application that runs without a user being logged into the system, usually to process some data on the machine that needs no user intervention to work with.

Web 服务是这样一种网站,它在联系时以多种标准格式之一返回 XML(通常)供服务使用者处理.

A Web service is a website that, when contacted, returns XML (typically) in one of several standard formats for the service consumer to process.

一个不能代替另一个.它们有着根本的不同.

One can't be substituted for the other. They are fundamentally different.

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

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