Essential Windows Communication Foundation (WCF) and over one million other books are available for Amazon Kindle. Learn more

Buy New

or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Buy Used
Used - Very Good See details
$15.87 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
Sell Back Your Copy
For a $11.75 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Essential Windows Communication Foundation (WCF): For .NET Framework 3.5
 
 
Start reading Essential Windows Communication Foundation (WCF) on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Essential Windows Communication Foundation (WCF): For .NET Framework 3.5 [Paperback]

Steve Resnick (Author), Richard Crane (Author), Chris Bowen (Author)
4.6 out of 5 stars  See all reviews (16 customer reviews)

List Price: $49.99
Price: $30.99 & this item ships for FREE with Super Saver Shipping. Details
You Save: $19.00 (38%)
  Special Offers Available
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Tuesday, January 31? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for Students. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $17.10  
Paperback $30.99  
Sell Back Your Copy for $11.75
Whether you buy it used on Amazon for $15.87 or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $11.75.
Used Price$15.87
Trade-in Price$11.75
Price after
Trade-in
$4.12

Book Description

0321440064 978-0321440068 February 21, 2008 1

“Whether this is the first time or the fifty-first time you’re using WCF, you’ll learn something new by reading this book.”

 --Nicholas Allen, Program Manager, Web Services, Microsoft

 

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
  • 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

Microsoft’s Steve Resnick, Richard Crane, and Chris Bowen are technology experts at the Microsoft Technology Center in Boston. They specialize in helping customers improve their technical agility by applying WCF and related technologies. Resnick has specialized in Internet technologies and distributed computing at Microsoft since 1995. He is a frequent speaker at Microsoft events and is now technology director for the U.S. Microsoft Technology Centers. Crane has more than 15 years of experience in senior software development roles. He specializes in large-scale Web sites, distributed computing, transactional systems, and performance analysis. Bowen has been an architect and developer for more than 15 years at companies such as Monster.com and Staples and is co-author of Professional Visual Studio 2005 Team System.

 

Foreword xxv

Preface xxvii

Chapter 1: Basics 1

Chapter 2: Contracts 33

Chapter 3: Channels 91

Chapter 4: Bindings 111

Chapter 5: Behaviors 181

Chapter 6: Serialization and Encoding 241

Chapter 7: Hosting 287

Chapter 8: Security 315

Chapter 9: Diagnostics 375

Chapter 10: Exception Handling 403

Chapter 11: Workflow Services 423

Chapter 12: Peer Networking 459

Chapter 13: Programmable Web 503

Appendix: Advanced Topics 537

Index 553


Special Offers and Product Promotions

  • Buy $50 in qualifying physical textbooks, get $5 in Amazon MP3 Credit. Here's how (restrictions apply)

Frequently Bought Together

Essential Windows Communication Foundation (WCF): For .NET Framework 3.5 + Programming WCF Services: Mastering WCF and the Azure AppFabric Service Bus + Learning WCF: A Hands-on Guide
Price For All Three: $91.92

Show availability and shipping details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Programming WCF Services: Mastering WCF and the Azure AppFabric Service Bus $33.04

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Learning WCF: A Hands-on Guide $27.89

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details



Editorial Reviews

About the Author

Steve Resnick has worked at Microsoft since the mid-1990s, spanning architect, developer, and evangelist roles in the field. He specializes in Internet technologies, architecting and designing high-volume, high-value Web applications. Steve is the National Technology Director for the Microsoft Technology Centers in the United States, where he sets strategy and direction so that his team can solve the toughest customer challenges. He has worked with .NET since the beginning and is an expert in Web services, BizTalk, transaction processing, and related technologies. He holds a M.S. and B.S. in Computer Science from Boston University and University of Delaware, respectively.

 

Rich Crane is a Technical Architect at the Microsoft Technology Center in Waltham, Massachusetts. A software architect and engineer with more than 18 years of experience, Rich has spent the last six years helping customers architect and build solutions on the Microsoft platform. He has worked with numerous Microsoft products and technologies and is an expert in BizTalk, SQL Server, SharePoint, Compute Cluster Server, and of course Visual Studio and the .NET Framework. He has spoken at conferences and community events such as TechEd and Code Camp. He graduated Summa Cum Laude from Drexel University with a B.S. degree in Electrical and Computer Engineering.

 

Chris Bowen is Microsoft’s Developer Evangelist for the northeastern United States, specializing in development tools, platforms, and architectural best practices. Asoftware architect and engineer with 15 years of experience, Chris joined Microsoft after holding senior positions at companies such as Monster.com, VistaPrint, Staples, and IDX Systems, and consulting on Web presence and e-commerce projects with others. He is coauthor of Professional Visual Studio 2005 Team System (2006, WROX) and holds an M.S. in Computer Science and a B.S. in Management Information Systems, both from Worcester Polytechnic Institute.

 

Excerpt. © Reprinted by permission. All rights reserved.

Essential WCF

Preface

Windows Communication Foundation (WCF) is the unified programming model for writing distributed applications on the Microsoft platform. It subsumes the prior technologies of ASMX, .NET Remoting, DCOM, and MSMQ and provides an extensible API to meet a wide variety of distributed computing requirements. Prior to WCF, you needed to master each of those technologies to select the right approach for a particular distributed application requirement. WCF simplifies this considerably by providing a unified approach.

XML Web Services is the most common technique for distributed computing in modern applications. They're used to expose technical and business functions on private or public networks. Sometimes they use the SOAP specification, sometimes they don't. They typically transmit information as text documents containing angle brackets, but not always. They generally use HTTP for the transport, but again, not always. WCF is a framework for working with XML Web Services and is compatible with most technology stacks.

Rich, Chris, and I have each developed code with .NET from the beginning (circa 1999). We work at Microsoft in the field, helping customers use WCF to solve real-world problems. Our customers range from large multinational corporations to ISVs to Web startups. Each has different challenges, needs, and priorities that we individually address. We show them what's possible, recommend what works well, and steer clear of what doesn't. We have experience building distributed applications and leverage that experience in teaching others about WCF.

Our goal for this book is to present WCF in a way that can immediately be put to use by software developers. We cover the material in enough detail that you know how and why to use different features. We go a bit further in most cases, describing some of the subtleties in the framework, but not so far as to document the API.

The Blogosphere is rich with WCF details. Much of it comes from the .NET product team and much of it comes from other developers learning it along the way. We made extensive use of Blogs as source material. This book brings order to that repository by organizing it in a way that can be easily consumed from your desk, sofa, or wherever you do your best reading.

Who Should Read This Book?

We wrote this book for software developers who want to build distributed applications on the .NET platform. As fellow developers, we know the importance of solid advice and clear examples on how to use new technology. We've trolled the Blogosphere, scoured internal Microsoft e-mail aliases, and wrote plenty of code to provide you with the best examples for doing the things you need to do.

Architects who need to understand WCF will also benefit from this book. The chapters covering basics, bindings, channels, behaviors, hosting, workflow, and security describe important aspects of designing and implementing services with WCF. Reading the two to three page introductions in each of these chapters may be the best way to get the 50,000-foot view of the technology.

Our goal in writing this book is to shorten your learning curve for WCF. We describe and demonstrate how to do the common tasks, addressing the basics as well as advanced topics. Throughout the book, we approach topics as a series of problems to be solved. Rather than documenting the API, we describe how to use WCF to accomplish your goals.

Prerequisites for this book are modest. If you're interested in WCF, you probably already have grounding in .NET. You're probably competent in C# or Visual Basic, or at least you were at one point. And, of course, you probably know your way around Visual Studio. So we're assuming that you're can write decent .NET code and are motivated to make the best use of your time in becoming proficient in WCF.

Installation Requirements

WCF is a key component of the Microsoft .NET Framework 3.x. WCF was first released with .NET 3.0 and has been enhanced in .NET 3.5. The delta between the two releases is modest: enhancements for non-SOAP Web services, integration between WCF and WF, and a healthy service pack. This book covers .NET 3.5. Unless there's a reason to use an older release, this is the clear recommendation.

.NET is packaged in two forms: the redistributable runtime libraries and the software development kit (SDK). The runtime libraries are meant for target machinesmdthose machines that are not for development. This includes testing, staging, and production environments. The SDK is meant for your development machines. The SDK contains code samples, documentation, and tools that are useful for development. Each of these .NET packages, the runtime and SDK versions, can be downloaded from Microsoft's MSDN site at http://msdn2.microsoft.com/en-us/netframework/default.aspx. The .NET 3.5 SDK also ships with Visual Studio 2008.

The Microsoft .NET Framework 3.5 can be installed on Windows XP SP2, Windows Vista, Windows Server 2003, and Windows Server 2008.

Organization

We don't expect you to read the book cover to cover. If you're new to WCF, you may want to read and try the samples in Chapter 1, "Basics," first. Following that, each subsequent chapter covers a major feature set of WCF. We include a few introductory pages in each chapter to describe the motivation and some design goals, and then we cover subtopics within the chapter.

Chapter 1, "Basics," is where we cover the basics of building and consuming WCF services. We discuss and demonstrate how to implement different types of interfaces and why you may choose each. By the end of this chapter, you'll be able to produce and consume services using the WCF.

Chapter 2, "Contracts," covers the three primary types of contacts in WCF: service contracts, data contracts and message contracts. Each of these enables you to define complex structures and interfaces in code. Data contracts map .NET types to XML, service contracts expose service interface endpoints in WSDL that can be consumed in a cross-platform manner, and message contracts enable developers to work directly on the XML in a message, rather than working with .NET types. For each of these contracts, WCF tools generate and export standards-based WSDL to the outside world.

Chapter 3, "Channels," covers channels and channel stacks. The channel model architecture is the foundation on which the WCF communication framework is built. The channel architecture allows for the sending and receiving of messages between clients and services. Channel stacks can be built to exactly match your needs.

Chapter 4, "Bindings," describes how to configure the communication stack to use exactly the protocols you need. For instance, if you're communicating within an enterprise and won't be crossing firewalls, and you need the fastest performance, a binding named netTcpBinding will give you best results. If you're looking to communicate with every last Web client out there, then HTTP and text encoded XML is necessary, so basicHttpBinding is the way to go. A binding is synonymous with a preconfigured channel stack.

Chapter 5, "Behaviors," covers service behaviors. In WCF, behaviors are the mechanism for affecting service operation outside of the actual message processing. Everything that is done after a message is received but before it is sent to the service operation code is the domain of behaviors. In WCF, this is where concurrency and instance management is handled, as well as transactional support. This chapter also demonstrates how to build custom behaviors for additional service control.

Chapter 6, "Serialization and Encoding," describes the process by which data is serialized from a .NET Type (class) to an XML Infoset and the way that XML Infoset is represented on the wire. We typically think of XML as a text document with angle brackets around field names and values, but the XML Infoset is a more basic data structure. This chapter...


Product Details

  • Paperback: 608 pages
  • Publisher: Addison-Wesley Professional; 1 edition (February 21, 2008)
  • Language: English
  • ISBN-10: 0321440064
  • ISBN-13: 978-0321440068
  • Product Dimensions: 9.3 x 7 x 1.1 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (16 customer reviews)
  • Amazon Best Sellers Rank: #405,680 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

16 Reviews
5 star:
 (11)
4 star:
 (3)
3 star:
 (2)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.6 out of 5 stars (16 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

16 of 17 people found the following review helpful:
5.0 out of 5 stars I expected a lot and it delivered, May 29, 2008
I'm a big fan of the entire "Essential" series from Addison-Wesley and I expected a lot from this book. I could sum up my opinion on it by saying "It delivers".

My vantage point is a little different from most in that I was coauthor of a book on Winfx/Indigo and I teach WCF. The pool of books out there on WCF are all quite good when compared to other technologies. I think that's b/c in large part, enterprise technologies aren't usually used by beginners and there's been a general reluctance to embrace WCF from what I've seen. I suspect this is in large part b/c you have to relearn Remoting/WS/WSE/MSMQ/Enterprise Services. Once you dive into it though, you quickly realize that WCF is almost too good to be true.

This book does a few things very well. First off, it explains each of the concepts clearly. I find that the authors all write well and are very good at succinctly communicating whatever they are talking about without ever talking over your head. The level of detail is very good too. A few places they could have went deeper (for instance, I think MTOM should have gotten more than a brief descriptive few sentences) but on the whole, I think the covered topics in proportion with how much they are used in the marketplace. They use a good bit of both simple and more involved expamples so if this was your first WCF book, you'd be well served but if you've read several WCF books, you'd still be glad you bought the book. I've bought both the print version and the Kindle version (which I love) and don't believe I've come across any errors. As such, I'd have to say the editing is very good, although that's not surprising in the least from this series. Another nice feature of the book is that while it has three authors, the writing style if very similar. So you get the benefit of three different people's experience without having the problems related to three different writing styles.

I found this book to be very helpful overall and even though I was well versed in most of the stuff they cover, I still found it a great reference. I've purchased copies of it for everyone on my staff and that's perhaps the highest compliment I could pay it - in addition to buying both the hard cover and Kindle version. I suspect if you buy it, you'll be glad you did.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


14 of 16 people found the following review helpful:
3.0 out of 5 stars Not A Lot of Practical Examples, January 16, 2010
This review is from: Essential Windows Communication Foundation (WCF): For .NET Framework 3.5 (Paperback)
If you're looking for a fairly exhaustive book that covers WCF in huge detail then this is your book. But if you're looking to get yourself up to speed quickly or you like practical examples at every turn to give context to your learning, look for another book.

I'm not sorry I bought it but it's just chapter after chapter of dry reading without the benefit of very many examples of how to actually use the details taught. Knowing this, I would have read another book first so I could keep from getting bored, then I would use this book to fill in the details.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


13 of 15 people found the following review helpful:
5.0 out of 5 stars WCF how to with VS2008, March 1, 2008
By 
M. Hennessy (Manchester, CT USA) - See all my reviews
(REAL NAME)   
This review is from: Essential Windows Communication Foundation (WCF): For .NET Framework 3.5 (Paperback)
A remarkably well organized and easy to read WCF how-to with respect to VS2008. Starts out with a basic service comparing code and configuration implementations. Subsequent chapters evolve gracefully reducing complexity to incremental understanding. Resulting SOAP and WSDL is presented with careful attention to cause and effect. WCF Services are compared with ASMX Web Services providing basic knowledge for newbies and practical information needed to move forward with WCF. Real world issues, like versioning, are regularly presented with mitigating strategies. In a technology library of hundreds, this is one of the best in terms of content and construction.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews











Only search this product's reviews



Inside This Book (learn more)
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
configuration element, basic profile, enterprise library, schema definitions, argument exception, secure session, server application, membership provider, public string ticker, hostname comparison, open connection operation, svc file, preconfigured bindings, untyped messages, duplex contract, peer resolver, shows client code, channel stack, endpoint behavior, peer mesh, public double price, following configuration information, parameter inspector, public class service, default encoder
Key Phrases - Capitalized Phrases (CAPs): (learn more)
Visual Studio, Add Service Reference, Binding Extension, Binding Class, Service Trace Viewer, Client Configuration, Attribute Name Description Default, Windows Vista, Windows Contacts, Forms Authentication, Active Directory, Add Web Reference, Host Configuration, Authorization Manager, Service Configuration Editor, Windows Meeting Space, Started Automatic Local Syrtem, Calling Get Price, Game Review, Transport Channel Transport, Programmable Web, Windows Process Activation Services, Microsoft Message Queue, Windows Workflow, Duplex Service Contract
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:

What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(9)
(3)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums


Listmania!


So You'd Like to...



Look for Similar Items by Category


Look for Similar Items by Subject