Download
windows communication foundation n.
Skip this Video
Loading SlideShow in 5 Seconds..
Windows Communication Foundation PowerPoint Presentation
Download Presentation
Windows Communication Foundation

Windows Communication Foundation

121 Vues Download Presentation
Télécharger la présentation

Windows Communication Foundation

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Windows Communication Foundation David Anderson Independent Software DeveloperDCOM Productions

  2. 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

  3. 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

  4. WCF Endpoints • Provides clients access to your WCF Service functionality • Is a connectivity point • Address, Binding, Contract

  5. WCF Contracts • Defines your actual WCF Service implementation • Methods, Composite Types, Return Values

  6. Routing ServicesThe example for this presentation • WCF Service • Serves named connection strings • Own authentication to avoid X509 Certificates • Unit Testing

  7. Consuming Routing ServicesThe example for this presentation • WCF Client • Referencing the service • Using the service • Unit Testing • Dependencies, and removing them