What does 'WCF' mean? [closed]

2020-02-29 02:13发布

Can anyone define WCF? What is the purpose of WCF?

What are some good reading materials to learn about WCF?

标签: wcf
6条回答
孤傲高冷的网名
2楼-- · 2020-02-29 02:36

WCF (Windows Communication Foundation) is the name that Microsoft uses for a Framework that can Communicate between multiple servers independently of their Operating System or Technology.

You can use this framework to send and receive messages and attachments (files, images, etc) to and from any computer in the world.

From a developer point of view, it's the new version of WSE (Web Services Enhancements) with MTOM (SOAP Message Transmission Optimization Mechanism) that was itself an updated version of the simple Web Service (.ASMX).

WCF is called a Service Framework and not a Web Service because it no longer depends on the IIS (Internet Information Server) to be hosted. Now you can host a WCF application using TCP/IP, host it as a Windows Service or even host it as an application - and you can still host it in IIS as well.

It uses the SOAP protocol and others (this is configurable in just one file), and supports HTTP and HTTPS as well, for messaging and attachments. You now have plenty of new security options with it... and it's the "top-of-the-line solution" to use to send/receive messages from anywhere to anything.

It is heavily used in the AJAX world, because it can send messages in the JSON format. Because of this, jQuery and other JavaScript frameworks work lovely with it.

For Reading material, I recommend buying a good book, because it's a good way to do self-learning and have it for reference at a later time. I personally bought Wrox Professional WCF, and I'm loving it.

查看更多
太酷不给撩
3楼-- · 2020-02-29 02:37

WCF stands for Windows Communication Foundation.

MSDN is a little dry, but Wikipedia expresses it well:

WCF is the part of the .NET Framework dedicated to communications.

In my case, this has meant a richer alternative to plain old Web Services, with a choice between communication layers.

Edit

15 Seconds also has a great primer on WCF:

WCF is a unified programming model that combines the best of breed features from XML Web Services, .NET Remoting, MSMQ, and COM+ into an integrated platform that is completely based on a set of open industry standards.

查看更多
Evening l夕情丶
4楼-- · 2020-02-29 02:44

WCF stands for "Windows Communication Foundation". The ultra-simplified version of it is that it is a collection of tools and libraries that present the developer with a unified view of communications. Everything in WCF revolves around three core concepts of Endpoints, Channels, and Messages. An endpoint is a way in or out of your code. A channel is the means by which a Message travels between those endpoints. Using this paradigm, you can use UDP, TCP, HTTP, Peer-to-Peer, MSMQ - all using the same 3 core concepts.

As for learning resources, call me old fashioned but I like to curl up with a good book when I'm learning about a new technology. Once I've mastered the basics I like using references online to enhance my base... but for intros, IMHO, nothing beats a good book.

You cannot find a better book on WCF than Juval Lowy's "Programming WCF Services". "Essential Windows Communication Foundation" is also a decent book but I still think you'd be better served by Juval's book.

查看更多
Anthone
5楼-- · 2020-02-29 02:45

"WCF" stands for Windows Communication Framework. WCF is the replacement for WSE (now obsolete), ASMX (the old ASP.NET Web Services), and to some extent, is also a replacement for .NET Remoting.

WCF covers all of the web services scenarios covered by ASMX and WSE, and then adds support for many more, including binary communication over TCP/IP, communication over message queues and named pipes, and many more.

A rich extensibility model permits both Microsoft, third party developers, and you, to extend WCF for future requirements. See the Cloud Computing article, and the Foundations: Working with the Service Bus articles in the April 2009 issue of MSDN Magazine to see how WCF has been extended to some very modern scenarios.

All new web services development should be in WCF, if at all possible.

查看更多
我只想做你的唯一
6楼-- · 2020-02-29 02:45

WCF separates the service from the protocol in much the same way that XHTML and CSS separate the content from the presentation.

查看更多
Deceive 欺骗
7楼-- · 2020-02-29 02:46

In simple word its technology that allows your service to communicate with application or service using various protocols/modes

查看更多
登录 后发表回答