top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Advantage of Windows Communication Foundation(WCF)

+2 votes
266 views

1- WCF has support for multiple protocols (TCP/IP, HTTP, PIPE, MSMQ etc.).
2- WCF can be hosted outside if IIS ie: can be hosted in managed windows applications, a windows service, and WAS (Windows Process Activation Service).
3- WCF provides customisation such as event hooks into service start / end / init / custom global error Handling etc. etc.
4- WCF services supports standard web services ws-*. wsHttpBinding
5- WCF uses http endpoint for web services.
6- It uses schemas and contracts instead of classes & types to define and implement communication.
7- WCF services expose endpoints that clients and services use to exchange messages. Each endpoint consists of an address, a binding, and a contract.
8- The main three elements of WCF architecture are : Address, Binding & Contract.
9- Address :It specifies where service is located and format is network protocol specific e.g. http or tcp.
10- Binding :It specifies transport protocol, security requirements & message encoding to be used by client & service for communication.
11- Contract :It defines what the service can do. WCF service publish multiple types of contracts like service contract, message contract, data contract etc.

posted Jun 2, 2014 by Atul Mishra

  Promote This Article
Facebook Share Button Twitter Share Button LinkedIn Share Button


Related Articles

What is wpf ?

Windows Presentation Foundation (or WPF) is a graphical subsystem for rendering user interfaces in Windows-based applications by Microsoft. WPF, previously known as "Avalon", was initially released as part of .NET Framework 3.0. Rather than relying on the older GDI subsystem, WPF uses DirectX.

WPF employs XAML, an XML-based language, to define and link various interface elements.[1] WPF applications can also be deployed as standalone desktop programs, or hosted as an embedded object in a website. WPF aims to unify a number of common user interface elements, such as 2D/3D rendering, fixed and adaptive documents, typography, vector graphics, runtime animation, and pre-rendered media. These elements can then be linked and manipulated based on various events, user interactions, and data bindings.

Windows Presentation Foundation (WPF) is a next-generation presentation system for building Windows client applications with visually stunning user experiences.

If you have been programming .NET, you must be familiar with Windows Forms and ASP.NET. Windows Forms are used to build Windows client application and ASP.NET is used to build Web applications.

Well, WPF is a new technology that may be used instead of both Windows Forms and ASP.NET.

Video Tutorial

https://www.youtube.com/watch?v=nJKe_IvIYuQ

READ MORE

What is WCF?

Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another. A service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application.

A WCF client connects to 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.

Archiecture

Video for WCF

https://www.youtube.com/watch?v=QmfPmqMk9Xs

READ MORE
...