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



or
Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $2.00 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
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.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

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

Steve Resnick , Richard Crane , Chris Bowen
4.4 out of 5 stars  See all reviews (19 customer reviews)

List Price: $49.99
Price: $32.37 & FREE Shipping. Details
You Save: $17.62 (35%)
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
Only 11 left in stock (more on the way).
Ships from and sold by Amazon.com. Gift-wrap available.
Want it Tuesday, May 21? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Kindle Edition $18.00  
Paperback $32.37  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

February 21, 2008 0321440064 978-0321440068 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


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: $94.43

Some of these items ship sooner than the others.

Buy the selected items together


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


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: 7 x 1.1 x 9.2 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 4.4 out of 5 stars  See all reviews (19 customer reviews)
  • Amazon Best Sellers Rank: #325,277 in Books (See Top 100 in Books)

More About the Authors

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

Customer Reviews

If you really want to learn WCF, this is the book. Pustakadahulu  |  6 reviewers made a similar statement
This book is very well organized, it is in depth, and the writing styles make it an easy read. T. Anderson  |  6 reviewers made a similar statement
This is the best overview I have seen of the Windows Communication Foundation API. B. Robert Helm  |  3 reviewers made a similar statement
Most Helpful Customer Reviews
19 of 20 people found the following review helpful
5.0 out of 5 stars I expected a lot and it delivered May 29, 2008
Format:Kindle Edition
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.
Was this review helpful to you?
21 of 23 people found the following review helpful
3.0 out of 5 stars Not A Lot of Practical Examples January 16, 2010
Format: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.
Comment | 
Was this review helpful to you?
14 of 16 people found the following review helpful
5.0 out of 5 stars WCF how to with VS2008 March 1, 2008
Format: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.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
1.0 out of 5 stars It is not consistent
It does not work all the times. it worked once and then never did.
I do not adivse people to buy it
Published 1 day ago by Alex Sepahpour
5.0 out of 5 stars Learn WCF
I have two WCF books and this one has things that the other book doesn't have and vice versa. Taught me a lot about WCF.
Published 4 months ago by Andy Churchill
5.0 out of 5 stars very good
I cannot think of any way they could improve this book. I thought it had enough sample code. I did not see a lot of mistakes.
Published 15 months ago by userid32
4.0 out of 5 stars This is a good book to get into WCF
This is a good book in terms of laying out what WCF is really all about. It explains everything clearly.
This is a great book to learn WCF from the ground up. Read more
Published on January 6, 2011 by jgatsby
5.0 out of 5 stars WCF now makes sense
First of all, we need to note that WCF is not an easy subject to understand. There is lot of ground to cover and the subject matter is very deep. Read more
Published on April 3, 2010 by Pustakadahulu
5.0 out of 5 stars Fantastic introduction to WCF, highly recommended.
I got so much valuable information out of this book. It answered just about all of my questions about WCF. The writing is easy to read. The book is well organized. Read more
Published on August 26, 2009 by J. Heath
4.0 out of 5 stars Great book with good price.
A well organized and easy to read WCF how-to with respect to VS2008. Starts out with a basic service comparing code and configuration implementations. A good book to start WCF.
Published on April 17, 2009 by rbethi
5.0 out of 5 stars WCF from top to bottom
Wow, I'm still surprised by this book - especially by the way it's written, so that WCF subject, which is quite new to me - gets revealed part by part. Read more
Published on January 27, 2009 by Tomasz Poradowski
5.0 out of 5 stars Remarkable
This book is remarkably an excellent tool for developers who want to expand his understanding in WCF programming. Read more
Published on January 2, 2009 by Aboubacar Diaby
5.0 out of 5 stars Clear and to the point... Easy to read and comprehend
Really enjoyed reading the Essential WCF book by Resnick and et.al. The topics were well organized and explained the concepts well enough. Read more
Published on December 29, 2008 by Baskin I. Tapkan
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Listmania!


Create a Listmania! list

So You'd Like to...


Create a guide


Look for Similar Items by Category