INTRODUCTION

THIS BOOK IS ABOUT Windows Communication Foundation in .NET 4.0. WCF is the technology in .NET that you use to build service-oriented applications, to exchange messages in various communication scenarios, and to run workflows built from service operations. With this new book you'll understand the principles of service orientation, learn patterns in communication, and discover how to declaratively define business processes. You'll learn the different parts of the technology to support these scenarios and gain a clear understanding of how the pieces of WCF 4.0 build upon each other to provide a comprehensive framework to support many aspects of distributed enterprise applications. Besides explaining the technical aspects of the WCF 4.0 stack, this book takes also a practical approach by showing three cases (service orientation, communication, and business processes) and implementing them step by step. The authors guide you in the practical aspects of developing with WCF and Visual Studio.

As you build your knowledge of the WCF 4.0 platform, you'll also learn how to effectively use Visual Studio 2010 to build solutions that maximize the new WCF 4.0 capabilities.

This book describes how to build (as a developer and as an architect) applications that integrate into the new programming paradigm in WCF 4.0. You'll also see how to set up a solution in this new architectural form based on WCF 4.0 as technology and .NET Services. You will learn how to solve actual real-world problems that you might experience when implementing WCF/WF 3.5 and the new programming paradigm and the new architectural styles needed for realizing WCF 4.0 projects. The examples shown in the book go beyond the "hello world" examples and guide you to an architecturally correct solution and provide a best practices–based coding guideline.

The authors are experienced in implementing the technology in real-world projects. They are faced with the problems in their daily jobs and come up with usable solutions combined with best practices and guidelines. They have applied this experience from real life to these chapters.

WHO THIS BOOK IS FOR

This book is for intermediate-level .NET developers and solution architects who are interested in using WCF 4.0 to build service-oriented applications, implement solid communications, host business processes, and enable secure and scalable integrations running in the cloud.

WHAT THIS BOOK COVERS

What you will learn in this book:

  • Designing services and using communication and workflow patterns in a correct and solid architecture.

  • Implementing the different WCF Bindings.

  • The benefits of the WCF 4.0 messaging enhancements.

  • How to instantiate services and work with proxies.

  • Different ways to secure the access to service operations.

  • How to implement WCF in a Service Oriented Approach.

  • Working with workflow services to organize business processes and create long running orchestrations.

  • How to build cloud-based integrations based on .NET Services.

  • How to create RESTful services and use them with lightweight clients.

HOW THIS BOOK IS STRUCTURED

You can start reading any chapter depending on your current knowledge of WCF 4.0, but we advise you to read them sequentially if you are new to the technology. Either way, Chapter 2 establishes the Car Rental Service implementation example. This is the foundation for many examples throughout the book, so it would be a good idea to familiarize yourself with Chapter 2 before diving too deeply into the other chapters.

Chapter 1 describes a number of principles and patterns on service orientation, integration and business processes and shows how they are related to WCF. It also discusses how you can use WCF to implement the patterns. This chapter is aimed at providing you with a more architectural background in the areas where WCF is intended for use.

Chapters 2 through 10 are about the technology itself, the APIs for developing applications, and ways to configure them. These nine chapters discuss different aspects of the WCF stack: Bindings, Clients, Instancing, workflow processes, security, and .NET Services. These chapters are aimed at providing the developer with the needed knowledge to start programming in WCF 4.0.

Chapters 11 through 13 show you step-by-step how to implement a complete solution in Visual Studio 2010. These chapters have a more practical approach and describe the way to develop complete solutions based on the knowledge you gained in Chapters 1 through 10. In these chapters you need to work with Visual Studio to complete a project as a solution for a given scenario. The code for these solutions is also available for download from www.wrox.com.

Each of these chapters deals with one case:

The final chapter of this book has a chapter about hosting. This chapter covers hosting in IIS/WAS and Cloud-based hosting. It also discusses how to track and manage endpoints with Windows Server AppFabric. This chapter also explains the routing service.

WHAT YOU NEED TO USE THIS BOOK

You'll need Visual Studio 2010 Professional and .NET 4.0 to learn WCF 4 and work through the examples in this book. You can run Visual Studio 2010 on Windows XP Service Pack 3 (except the Starter Edition), Windows Vista Service Pack 1 (except the Starter Edition), Windows 7, Windows Server 2003 SP2, Windows Server 2003 R2, Windows Server 2008 SP2, Windows Server 2008 R2. Your machine should have at least 1024MB RAM, preferably more.

CONVENTIONS

To help you get the most from the text and keep track of what's happening, we've used a number of conventions throughout the book.

Warning

Boxes with a warning icon like this one hold important, not-to-be-forgotten information that is directly relevant to the surrounding text.

Note

The pencil icon indicates notes, tips, hints, tricks, or asides to the current discussion.

As for styles in the text:

  • We highlight new terms and important words when we introduce them.

  • We show keyboard strokes like this: Ctrl+A.

  • We present code in two different ways:

    We use a monofont type with no highlighting for most code examples.
    We use bold to emphasize code that is particularly important in the present context or to show changes from a previous code snippet.

SOURCE CODE

As you work through the examples in this book, you may choose either to type in all the code manually, or to use the source code files that accompany the book. All the source code used in this book is available for download at http://www.wrox.com. When at the site, simply locate the book's title (use the Search box or one of the title lists) and click the Download Code link on the book's detail page to obtain all the source code for the book. Code that is included on the Web site is highlighted by the following icon:

SOURCE CODE

Listings include the filename in the title. If it is just a code snippet, you'll find the filename in a code note such as this:

Code snippet filename

Note

Because many books have similar titles, you may find it easiest to search by ISBN; this book's ISBN is 978-0-470-56314-4.

Once you download the code, just decompress it with your favorite compression tool. Alternately, you can go to the main Wrox code download page at http://www.wrox.com/dynamic/books/download.aspx to see the code available for this book and all other Wrox books.

ERRATA

We make every effort to ensure that there are no errors in the text or in the code. However, no one is perfect, and mistakes do occur. If you find an error in one of our books, like a spelling mistake or faulty piece of code, we would be very grateful for your feedback. By sending in errata, you may save another reader hours of frustration, and at the same time, you will be helping us provide even higher quality information.

To find the errata page for this book, go to http://www.wrox.com and locate the title using the Search box or one of the title lists. Then, on the book details page, click the Book Errata link. On this page, you can view all errata that has been submitted for this book and posted by Wrox editors. A complete book list, including links to each book's errata, is also available at www.wrox.com/misc-pages/booklist.shtml.

If you don't spot "your" error on the Book Errata page, go to www.wrox.com/contact/techsupport.shtml and complete the form there to send us the error you have found. We'll check the information and, if appropriate, post a message to the book's errata page and fix the problem in subsequent editions of the book.

P2P.WROX.COM

For author and peer discussion, join the P2P forums at p2p.wrox.com. The forums are a Web-based system for you to post messages relating to Wrox books and related technologies and interact with other readers and technology users. The forums offer a subscription feature to e-mail you topics of interest of your choosing when new posts are made to the forums. Wrox authors, editors, other industry experts, and your fellow readers are present on these forums.

At http://p2p.wrox.com, you will find a number of different forums that will help you, not only as you read this book, but also as you develop your own applications. To join the forums, just follow these steps:

  1. Go to p2p.wrox.com and click the Register link.

  2. Read the terms of use and click Agree.

  3. Complete the required information to join, as well as any optional information you wish to provide, and click Submit.

  4. You will receive an e-mail with information describing how to verify your account and complete the joining process.

Note

You can read messages in the forums without joining P2P, but in order to post your own messages, you must join.

Once you join, you can post new messages and respond to messages other users post. You can read messages at any time on the Web. If you would like to have new messages from a particular forum e-mailed to you, click the Subscribe to this Forum icon by the forum name in the forum listing.

For more information about how to use the Wrox P2P, be sure to read the P2P FAQs for answers to questions about how the forum software works, as well as many common questions specific to P2P and Wrox books. To read the FAQs, click the FAQ link on any P2P page.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.87.161