WCF BASICS

Step Toward Windows Communication Foundation (WCF)

Introduction:

In this series we will learn Windows communication Foundation. The new technology to develop distributed application.

Background:

The old way to Develop Distributed Application i.e. .Net Remoting, Web Services. Some advanced over .Net remoting and Web Services i.e. WCF. Take step-by-step look on WCF.

Distributed Programming:

All you know what is Distributed Programming i.e. Communication between multiple server application or services in the network which provide some common features.

1)      Must be capable to run behind the firewall.

2)      Can share some common protocol(SOAP,WSDL) on different platform.

History  Of  Programming:

Object Oriented Programming 1980:

1)      Polymorphism

2)      Encapsulation

3)      Sub-Classing

Component Oriented Programming 1990:

1)      Interface Based

2)      Dynamic Loading

Service Oriented Programming 2000:

1)      Message Based.

2)      Schema and Contract.

Now we know something about History in programming. Now further we will move toward the Services. Here we will discuss about services how we came to this Service oriented programming as we have seen that above. Let’s move to services.

What Is Service?

Service is the self contained business function which exposing functionality contained within it. As well as which is not just XML or HTTP.

In service oriented application we move to Client-Server model to Sender-Receiver model it’s the service as well no issues of versioning. In old days we was exposing our service with Web-Services. Following diagram will show that previously how we was exposing our service.

WCF

WCF

 

Windows Communication Foundation:

As above we have seen that in which way we was exposing our service to Http Client only not on other protocols. In WCF we are exposing our service like bellow.

WCF 2

WCF 2

In WCF our .Net function is available to various user now but with web services it’s was available only to HTTP client but In WCF it can accessed by TCP,ICP,MSMQ etc… clients also.

Conclusion:

In this article we have seen only introduction to Windows Communication Foundation(WCF). In forthcoming article we will see how to do Distributed Programming from Basic to advanced with WCF.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s