O'Reilly logo

Inside Windows® Communication Foundation by Justin Smith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Contracts

In this chapter:

Contracts Defined 237

WCF Contract Gross Anatomy 238

From Contract Definition to Contract Object 252

Microsoft Windows Communication Foundation (WCF) contracts map Microsoft .NET Framework types to messaging constructs. To illustrate, consider a service that requests, confirms, and cancels restaurant reservations. This service consists of one endpoint located at http://contoso.com/reservations. The endpoint exposes three operations: RequestReservation, ChangeReservation, and CancelReservation. The RequestReservation and ChangeReservation operations use the request/reply Message Exchange Pattern (MEP), and the CancelReservation operation uses the datagram MEP. Some message structures are shared between these operations, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required