Slide 1: Next generation of distributed communication Introduction : Introduction The Windows Communication Foundation (or WCF) is an application programming interface in the .NET Framework for building connected service –oriented applications.
Introduced in .NET 3.0.
WCF API is found in System.ServiceModel namespace.
WCF is based on basic concepts of Service oriented architecture (SOA)
Appropriate for use on-machine, cross machine, and cross Internet Background : Background Current distributed system is mainly based on 4 different communication stacks.
ASP.NET Web Services (ASMX)
The Microsoft Message Queue (MSMQ)
The Enterprise Services/COM+ runtime environment
WCF is all about providing a single programming model that unifies the features of ASMX, MSMQ, Enterprise services and Remoting. Benefits : Benefits Support for sending messages using not only HTTP, but also TCP and other network protocols.
The ability to switch message protocols with minimal effort.
Support for hosting services on hosts other than a Web server.
Support for security and reliability.
Interoperates with applications running on other platforms Slide 5: A WCF service is composed of three parts —
a Service class that implements the service to be provided,
a host environment to host the service,
and one or more endpoints to which clients will connect.
A WCF client connects to a WCF service via an endpoint.
The endpoints specify a Contract that defines which methods of the Service class will be accessible via the endpoint
The endpoints also define a Binding that specifies how a client will communicate with the service and
The Address where the endpoint is hosted. Slide 6: Client Service Message Interaction between WCF endpoint and client is done using SOAP envelope
Both client and server must have compatible endpoints.