Why WCF...???

Why WCF...???

What is WCF Service?

WCF stands for Windows Communication Foundation and is part of .NET 3.0. WCF is a Microsoft platform for building distributed and interoperable applications.

WCF supports multiple languages and multiple platforms.

Why Should We Use WCF Service?

Let’s take these two scenarios:

We have two clients and we need to implement a service for them:

  1. The first client is using Java Application to interact with our service. So for interoperability, this client wants messages in XML format and the protocol to be HTTP.
  2. The second client uses .NET, so for better performance, this client wants messages in binary format and the protocol to be TCP.

Without WCF Service

  1. To satisfy the first client requirement, we use web service.


2. To satisfy the second client requirement, we use .NET Remoting.

These are two different technologies, and have completely different programming models. So the developers have to learn different technologies.

So to unify and bring all technologies under one roof, Microsoft has come with a new programming model called WCF-Windows Communication Foundation.

With WCF

You implement one service and we can configure as many end points as we want to support all the client needs. To support the above 2 client requirements, we would configure 2 end points. In the endpoint configuration, we can specify the protocols and message formats that we want to use.

So, the conclusion is that:

  1. A web service to exchange messages in XML format using HTTP protocol for interoperability
  2. A remoting service to exchange messages in binary format using TCP protocol for performance

Learn WCF

要查看或添加评论,请登录

Sahir Shaikh的更多文章

  • Angular Vs React JS

    Angular Vs React JS

    Angular and React are two of the most popular frameworks being used today to handle large scale web development…

  • What’s New in Angular 2

    What’s New in Angular 2

    Angular 2.0 :Open-source client and server-side web development framework has received several updates and changes over…

  • AngularJS - HTML enhanced for web apps

    AngularJS - HTML enhanced for web apps

    AngularJS is a free JavaScript open-source framework for client-side MVC or MVVM architecture, along with components…

社区洞察

其他会员也浏览了