什么是WCF服务和Web服务之间的区别? [英] what is the difference between wcf service and web service?

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

问题描述

可能重复:结果
   Web服务VS WCF服务

复制:

Web服务VS WCF服务

什么是WCF服务和互联网服务之间的区别?

What is the difference between WCF service and Webservice ?

推荐答案

WCF是一个编程模型和API。
WCF服务意味着正在使用的编程模型和API构建的应用程序。

WCF is a programming model and API. "WCF Service" implies an app that is built using that programming model and API.

Web服务是公开的HTTP(REST(XML或JSON),SOAP或以其他方式)接口的应用程序。

"Web Service" is an app that exposes an HTTP (REST (XML or JSON), SOAP or otherwise) interface.

您可以建立使用WCF Web服务,但你也可以使用其他API或堆栈构建一个Web服务。如PHP或Java,例如

You can build a Web service using WCF, but you can also build a Web service using other APIs or "stacks". Like PHP or Java, for example.

使用WCF,你可以建立Web服务,但你也可以建立一个都没有,Webbish的服务。例如,您可以建立一个接受过只有一个本地管道接口输入的二进制请求的服务。它仍然是一个服务,但它不是一个网络服务,是因为它不使用Web协议(通常HTTP和XML)。

With WCF you can build web services but you can also build services that are not, "Webbish". For example you can build a service that accepts incoming binary requests over only a local pipe interface. It is still a service, but it is not a "web service" because it is not using web protocols (generally HTTP and XML).

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

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