Windows Communication Foundation David Anderson Independent Software Developer DCOM Productions.

7
Windows Communication Foundation David Anderson Independent Software Developer DCOM Productions

Transcript of Windows Communication Foundation David Anderson Independent Software Developer DCOM Productions.

Page 1: Windows Communication Foundation David Anderson Independent Software Developer DCOM Productions.

Windows Communication FoundationDavid Anderson

Independent Software Developer

DCOM Productions

Page 2: 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

• Service Contracts, Operation Contracts, Data Members

• Configuration

• WCF Whitepaper on MSDN

Page 3: Windows Communication Foundation David Anderson Independent Software Developer DCOM Productions.

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

Page 4: Windows Communication Foundation David Anderson Independent Software Developer DCOM Productions.

WCF Endpoints

• Provides clients access to your WCF Service functionality

• Is a connectivity point

• Address, Binding, Contract

Page 5: Windows Communication Foundation David Anderson Independent Software Developer DCOM Productions.

WCF Contracts

• Defines your actual WCF Service implementation

• Methods, Composite Types, Return Values

Page 6: Windows Communication Foundation David Anderson Independent Software Developer DCOM Productions.

Routing ServicesThe example for this presentation

• WCF Service

• Serves named connection strings

• Own authentication to avoid X509 Certificates

• Unit Testing

Page 7: Windows Communication Foundation David Anderson Independent Software Developer DCOM Productions.

Consuming Routing ServicesThe example for this presentation

• WCF Client

• Referencing the service

• Using the service

• Unit Testing

• Dependencies, and removing them