70 likes | 216 Views
Windows Communication Foundation. David Anderson Independent Software Developer DCOM Productions. What is WCF?. Service-oriented communication Interoperable Metadata allows you to consume the service in code (C#/VB) Bindings and Endpoints
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