• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
 
Introducing Windows CommunicationFoundation
An Early LookDavid Chappell, Chappell & AssociatesSeptember 2005 © Copyright Microsoft Corporation 2005. All rights reserved.
 
 2
Contents
DESCRIBING WINDOWS COMMUNICATION FOUNDATION.........................................................................................3
 
I
LLUSTRATING THE
P
ROBLEM
:
 
A
 
S
CENARIO
......................................................................................................................................3
 
A
DDRESSING THE
P
ROBLEM
:
 
W
HAT
WCF
 
P
ROVIDES
.......................................................................................................................5
 
Unification of Microsoft’s Distributed Computing Technologies.............................................................................................
 
 Interoperability with Applications Built on Other Technologies...............................................................................................8
 
 Explicit Support for Service-Oriented Development................................................................................................................12
 
USING WINDOWS COMMUNICATION FOUNDATION....................................................................................................13
 
C
REATING A
WCF
 
S
ERVICE
.............................................................................................................................................................13
 
Creating a Service Class............................................................................................................................................................14
 
Selecting a Host..........................................................................................................................................................................21
 
 Defining Endpoints....................................................................................................................................................................24
 
C
REATING A
WCF
 
C
LIENT
...............................................................................................................................................................29
 
O
THER
A
SPECTS OF
WCF................................................................................................................................................................30
 
 Messaging Options....................................................................................................................................................................30
 
Controlling Local Behavior.......................................................................................................................................................31
 
Security.......................................................................................................................................................................................32
 
Transactions...............................................................................................................................................................................34
 
Queuing......................................................................................................................................................................................37 
 
 Extensibility................................................................................................................................................................................38
 
Tool Support: WCF and Visual Studio.....................................................................................................................................39
 
COEXISTENCE AND UPGRADE................................................................................................................................................39
 
CONCLUSION..................................................................................................................................................................................44
 
ABOUT THE AUTHOR..................................................................................................................................................................44
 
 
 3
 
Describing Windows Communication Foundation
The global embrace of Web services—standard protocols for application-to-applicationcommunication—has changed software development. The functions that Web servicescan now provide, including effective security, distributed transactions, and reliablecommunication, enable this single technology family to address what were once separateproblems. And the new view of services as a distinct software abstraction provides a solidfoundation for the service-oriented architecture (SOA) that many organizations are puttingin place.Software development environments must keep pace with these changes. The benefitsWeb services bring should be reflected in the tools and technologies that developers use.Going forward, a simpler approach to distributed computing, broad interoperability, anddirect support for service-orientation will be fundamental for developers. WindowsCommunication Foundation (WCF), Microsoft’s forthcoming technology for service-oriented applications, is designed to address these requirements. Originally code-named“Indigo”, WCF is implemented in managed code as an extension of the Microsoft .NETFramework 2.0. Once it’s available, this technology is intended to be the foundation forcreating service-oriented applications on Windows
1
.
Illustrating the Problem: A Scenario
To get a sense of the problems that WCF addresses, suppose that a car rental firmdecides to create a new application for reserving cars. Since this application will run onWindows, the firm chooses to build it on version 2.0 of the .NET Framework. Thearchitects of this rental car reservation application know that the business logic itimplements will need to be accessible by other software running both inside and outsidetheir company. Accordingly, they decide to build it in a service-oriented style, with theapplication’s logic exposed to other software through a well-defined set of services. Toimplement these services, and thus communicate with other software, the new applicationwill use WCF.
1
This paper is a revised and expanded version of the white paper originally published athttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnlong/html/introWCFv1-0.asp.
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...