25.6. The ABCs of WCF

Hosts and clients communicate with each other by agreeing on the ABCs, a friendly mnemonic for remembering the core building blocks of a WCF application address, binding, and contract:

  • Address: Describes the location of the service. In code, you represent this with a System.Uri type; however, you typically store the value in *.config files.

  • Binding: WCF ships with a many different bindings that specify network protocols, encoding mechanisms, and the transport layer.

  • Contract: Provides a description of each method exposed from the WCF service.

You should realize that the ABC abbreviation does not imply that a developer must define the address first, followed by binding, and ending with the contract. In many cases, a WCF developer ...

Get Pro C# 2010 and the .NET 4 Platform, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.