In this tutorial i will explain the concept of WCF.
The different types of Contracts and what is an END point how to use it.
How to create new Service and where to host the service.
First lets learn the basic and why do we need WCF.
What is WCF ?
WCF - Windows Communication Foundation. Wcf was introduced in .Net 3.0, It is helpful for building
distributed and interoperable applications.
What is a Distributed application ?
Distributed application means the Client will be running in one machine and the
service will be running in a separate machine. This forms a connected system
between 2 machines.
What is interoperable application?
An application build in any platform can communicate with
any other application developed in any other platform is called interoperable
application. For example let’s take a web service developed in .Net can
communicate with .net Web application as well as applications developed in
Java, J2EE ect., Web services use the open protocols live HTTP and uses XML
message. So any client can communicate with it.
Why do we need WCF ?
Now we will have a ? in mind when existing web service can allow the communication between 2 system with different platform. Then why did MS introduced the WCF.
To make you understand, lets a take an example. One of our client using Java Application request HTTP and XML message and the other client using .Net application request a TCP protocol and binary messages. So in this scenario we have to write two separate service application one using HTTP/XMl and other using .Net remoting application.
Why do we need WCF ?
Now we will have a ? in mind when existing web service can allow the communication between 2 system with different platform. Then why did MS introduced the WCF.
To make you understand, lets a take an example. One of our client using Java Application request HTTP and XML message and the other client using .Net application request a TCP protocol and binary messages. So in this scenario we have to write two separate service application one using HTTP/XMl and other using .Net remoting application.
No comments:
Post a Comment