.NET 中的 WCF 是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2577744/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 14:08:28  来源:igfitidea点击:

What is WCF in .NET?

.netweb-serviceswcf

提问by Red Swan

What is WCF and WF in .NET? What are its uses? How to start learning it?

.NET 中的 WCF 和 WF 是什么?它的用途是什么?如何开始学习呢?

Thanks for answers, they are great guideline for me. But I want to ask where should I use thins WCF service? In which scenario we can use it properly?

感谢您的回答,它们对我来说是很好的指南。但是我想问一下我应该在哪里使用thins WCF服务?在什么场景下我们可以正确使用它?

回答by marc_s

WCF = Windows Communication Foundation

WCF = Windows 通信基础

A communication-oriented set of APIs and a "runtime" inside .NET to make two (or more) systems talk to one another. It basically replaces ASMX (ASP.NET web services), .NET remoting (object remoting) and a few other communication-related API's and products in the .NET space.

.NET 中的一组面向通信的 API 和一个“运行时”,用于使两个(或多个)系统相互通信。它基本上取代了 ASMX(ASP.NET Web 服务)、.NET 远程处理(对象远程处理)以及 .NET 空间中的一些其他与通信相关的 API 和产品。

What does WCF replace?

WCF 取代了什么?

It can and should be used any time two systems (apps, machines) need to exchange information, basically. It's the foundation for all "connected systems".

基本上,它可以并且应该在两个系统(应用程序、机器)需要交换信息的任何时候使用。它是所有“连接系统”的基础。

Your ultimate destination is the MSDN Developer Center for WCFwhich has a ton of tutorials, articles, sample code, screen casts, videos and much more.

您的最终目的地是WCFMSDN 开发人员中心,其中包含大量教程、文章、示例代码、屏幕投射、视频等等。

回答by Henric

From MSDN: "Windows Communication Foundation is... a part of the .NET Framework that provides a unified programming model for rapidly building service-oriented applications that communicate across the web and the enterprise."

来自MSDN:“ Windows Communication Foundation 是…….NET Framework 的一部分,它提供了一个统一的编程模型,用于快速构建跨 Web 和企业通信的面向服务的应用程序。

White Paper on WCF

WCF 白皮书

Good luck!

祝你好运!

回答by fazail

The Windows Communication Foundation (or WCF) is an application programming interface (API) in the .NET Framework for building connected, service-oriented applications.

Windows Communication Foundation(或 WCF)是 .NET Framework 中的应用程序编程接口 (API),用于构建连接的、面向服务的应用程序。

WCF is meant for designing and deploying distributed applications under service-oriented architecture (SOA) implementation. ** Architechture

WCF 用于在面向服务的体系结构 (SOA) 实现下设计和部署分布式应用程序。** 架构

回答by Timothy Khouri

I have only a couple of articles here, but they are simple: http://www.singingeels.com/?Category=WCF

我这里只有几篇文章,但它们很简单:http: //www.singingeels.com/?Category=WCF

回答by Jindal Saha

WCF Stands for Windows Communication Foundation. Windows Communication Foundation (WCF) is a framework for building service-oriented applications in .Net. Its an Microsoft Answer to SOA.

WCF 代表 Windows 通信基础。Windows Communication Foundation (WCF) 是用于在 .Net 中构建面向服务的应用程序的框架。它是微软对 SOA 的回答。

Get more interview questions on WCF at: http://interviewmantra.com/category/Windows-Communication-Foundation-(WCF).aspx

更多关于 WCF 的面试问题,请访问:http: //interviewmantra.com/category/Windows-Communication-Foundation-(WCF) .aspx

回答by Jalpesh Vadgama

WCF is stand for Windows Communication Foundation. This is great network distributed system developed by Microsoft for communication between applications.Here you can find the good tutorial about WCF.

WCF 是 Windows Communication Foundation 的缩写。这是微软为应用程序之间的通信开发的很棒的网络分布式系统。在这里你可以找到关于WCF的好教程。

http://www.wcftutorial.net/

http://www.wcftutorial.net/

回答by Amit kumar jha

From WikiPedia (http://en.wikipedia.org/wiki/Windows_Communication_Foundation):

来自维基百科(http://en.wikipedia.org/wiki/Windows_Communication_Foundation):

The Windows Communication Foundation (or WCF) is an application programming interface (API) in the .NET Framework for building connected, service-oriented applications.

WCF is meant for designing and deploying distributed applications under service-oriented architecture (SOA) implementation. ** Architechture

** WCF is designed using service oriented architecture principles to support distributed computing where services have remote consumers. Clients can consume multiple services; services can be consumed by multiple clients. Services are loosely coupled to each other. Services typically have a WSDL interface (Web Services Description Language) that any WCF client can use to consume the service, regardless of which platform the service is hosted on. WCF implements many advanced Web services (WS) standards such as WS-Addressing, WS-ReliableMessaging and WS-Security. With the release of .NET Framework 4.0, WCF also provides RSS Syndication Services, WS-Discovery, routing and better support for REST services. EndpointA WCF client connects to a WCF service via an Endpoint. Each service exposes its contract via one or more endpoints. An endpoint has an address (which is a URL specifying where the endpoint can be accessed) and binding properties that specify how the data will be transferred.

Windows Communication Foundation(或 WCF)是 .NET Framework 中的应用程序编程接口 (API),用于构建连接的、面向服务的应用程序。

WCF 用于在面向服务的体系结构 (SOA) 实现下设计和部署分布式应用程序。** 架构

** WCF 使用面向服务的架构原则设计,以支持服务具有远程使用者的分布式计算。客户端可以消费多个服务;服务可以被多个客户端使用。服务之间是松散耦合的。服务通常有一个 WSDL 接口(Web 服务描述语言),任何 WCF 客户端都可以使用它来使用服务,而不管服务托管在哪个平台上。WCF 实现了许多高级 Web 服务 (WS) 标准,例如 WS-Addressing、WS-ReliableMessaging 和 WS-Security。随着 .NET Framework 4.0 的发布,WCF 还提供了 RSS Syndication Services、WS-Discovery、路由以及对 REST 服务的更好支持。 端点WCF 客户端通过端点连接到 WCF 服务。每个服务通过一个或多个端点公开其合同。端点有一个地址(它是一个 URL,指定可以访问端点的位置)和绑定属性,指定数据将如何传输。