Windows Communication Foundation (WCF) is the easiest way to produce and consume Web services on the Microsoft platform. With .NET 3.5, WCF has been extensively revamped—and Visual Studio 2008 gives developers powerful new tools for utilizing it. Essential Windows Communication Foundation shows developers exactly how to make the most of WCF with .NET 3.5 and Visual Studio 2008.
Drawing on extensive experience working with early adopters, three Microsoft insiders systematically address the topics developers ask about WCF. The authors approach each subject with practical advice and present best practices, tips, and tricks for solving problems. Throughout, you'll find detailed explanations, solutions for the "pain points" of WCF development, and an extensive collection of reusable code examples. Coverage includes:
- Using WCF contracts to define complex structures and interfaces
- Understanding WCF's channel stacks and channel model architecture
- Configuring the WCF communication stack to use only the protocols you need
- Using standard and custom service behaviors to manage concurrency, instances, transactions, and more
- Serializing data from .NET types to XML Infosets and representing Infosets "on the wire"
- Hosting WCF services via IIS, managed .NET applications, and Windows Activation Services
- Implementing WCF security, in depth: authentication; transport and message-level security; and Internet and intranet scenarios
- Improving reliability: exception handling, diagnostics, and more
- Workflow services: new integration points between WCF 3.5 and Windows Workflow Foundation
- Building client-to-client, peer network-based applications
- Utilizing WCF for non-SOAP Web services: AJAX and JSON examples and .NET 3.5 hosting classes
Chapter 9 covers WCF Diagnostics. Working with a sample application, you'll find out how to configure WCF to use end-to-end tracing, correlating WCF activities with traces via a GUID (activityID
), implement message logging, use shared listeners to output message data from multiple sources to a shared file, analyze and filter messages, use performance counters, and WMI, and simplify your configuration tasks with the Service Configuration Editor.
Reproduced from Essential Windows Communication Foundation (WCF): For .NET Framework 3.5 by permission of Addison Wesley. Copyright © 2007 Pearson Education. ISBN-10: 0-321-44006-4, ISBN-13: 978-0-321-44006-8. All rights reserved.