70 likes | 77 Views
Learn about Windows Communication Foundation (WCF) and its role in service-oriented communication. Discover how metadata allows easy consumption of services in code and explore different bindings, endpoints, and service contracts. Dive into the configuration options and check out the comprehensive WCF whitepaper on MSDN.
E N D
Windows Communication Foundation David Anderson Independent Software DeveloperDCOM Productions
What is WCF? • Service-oriented communication • Interoperable • Metadata allows you to consume the service in code (C#/VB) • Bindings and Endpoints • Service Contracts, Operation Contracts, Data Members • Configuration • WCF Whitepaper on MSDN
WCF Bindings • A binding describes the transport, protocol, and encoding • BasicHttpBinding • A binding that is suitable for communicating with WS-Basic Profile conformant Web services, for example, ASP.NET Web services (ASMX)-based services. This binding uses HTTP as the transport and text/XML as the default message encoding. • WSHttpBinding • WS2007HttpBinding • NetTcpBinding • NetNamedPipeBinding • WebHttpBinding
WCF Endpoints • Provides clients access to your WCF Service functionality • Is a connectivity point • Address, Binding, Contract
WCF Contracts • Defines your actual WCF Service implementation • Methods, Composite Types, Return Values
Routing ServicesThe example for this presentation • WCF Service • Serves named connection strings • Own authentication to avoid X509 Certificates • Unit Testing
Consuming Routing ServicesThe example for this presentation • WCF Client • Referencing the service • Using the service • Unit Testing • Dependencies, and removing them