Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications


Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$44.99
save 44%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Master WCF concepts and implement them in real-world environments
  • An example-packed guide with clear explanations and screenshots to enable communication between applications and services and make robust SOA applications
  • Resolve frequently encountered issues effectively with simple and handy recipes
  • Explore the new features of the latest .NET 4.0 framework/Visual Studio 2010

 

Book Details

Language : English
Paperback : 316 pages [ 235mm x 191mm ]
Release Date : October 2010
ISBN : 1849680760
ISBN 13 : 9781849680769
Author(s) : Steven Cheng
Topics and Technologies : All Books, Application Development, Microsoft Development , Cookbooks, Enterprise, Microsoft, .NET, SOA, Web Services


Table of Contents

Preface
Chapter 1: Working with Contracts
Chapter 2: Endpoint, Binding, and Behavior
Chapter 3: Hosting and Configuration
Chapter 4: Service Discovery and Proxy Generation
Chapter 5: Channel and Messaging
Chapter 6: Dealing with Data in Service
Chapter 7: Security
Chapter 8: Concurrency
Chapter 9: Extending WCF Runtime
Chapter 10: RESTful and AJAX-enabled WCF Services
Chapter 11: Interoperability
Chapter 12: Diagnostics
Chapter 13: Miscellaneous WCF Development Tips
Index
  • Chapter 1: Working with Contracts
    • Introduction
    • Defining a one-way Contract
    • Make DataContract forward-compatible
    • Generate DataContract from an XML Schema
    • Using XMLSerializer to control message serialization
    • Using MessageContract to control the SOAP message
    • Adding a custom SoapHeader via Contract
    • Return custom exception data through FaultContract
  • Chapter 2: Endpoint, Binding, and Behavior
    • Introduction
    • Configuring Default Endpoints
    • Setting up two-way communication over MSMQ
    • Building a Publish-Subscribe service with dual binding
    • Creating a multiple-endpoint service
    • Implementing a POX HTTP service
    • Defining a CustomBinding without a timestamp header
    • Suppressing mustUnderstand validation on unknown SoapHeaders
    • Sharing a physical address between multiple endpoints
  • Chapter 3: Hosting and Configuration
    • Introduction
    • Hosting a service in a console application
    • Hosting a service in Windows Service
    • Hosting a HTTP service with ASP.NET-compatible context
    • Hosting a non-HTTP service in IIS 7
    • Customizing IIS ServiceHost via ServiceHostFactory
    • Specifying a dedicated service instance for a singleton service
    • Hosting a service in WSS 3.0
  • Chapter 4: Service Discovery and Proxy Generation
    • Introduction
    • Creating a typed service client
    • Choosing a specific type for representing a collection parameter
    • Reusing types between service and client
    • Customizing an auto-generated service proxy class in Visual Studio
    • Building an ad-hoc auto-discoverable service
    • Using managed ServiceDiscovery
    • Generating a service proxy in code
    • Customizing auto-generated service metadata
  • Chapter 5: Channel and Messaging
    • Introduction
    • Using ChannelFactory to consume a WCF service
    • Invoking async operation via ChannelFactory
    • Creating a service via ChannelListener
    • Getting the IP address of a client consumer of a WCF service
    • Adding a dynamic SoapHeader into a message
  • Chapter 6: Dealing with Data in Service
    • Introduction
    • Binding a WPF element with data from a WCF service
    • Returning ReadOnlyCollection data
    • Using raw XML as an operation parameter
    • Returning a DataTable/DataSet in a service operation
    • Transferring binary data with MTOM encoding
    • Specifying ServiceKnownType information in a programmatic way
    • Using XmlSerializer for custom data serialization
  • Chapter 7: Security
    • Introduction
    • Setting up ad hoc Windows authentication over plain HTTP
    • Getting an authenticated client identity in a service operation
    • Using username authentication with an ASP.NET membership provider
    • Sending a clear text username token over unsecured HTTP transport
    • Using transport and message security at the same time
    • Authorizing through declarative role-based access control
    • Impersonating with a client caller identity
    • Adding multiple tokens in a service request (supportingToken)
    • Supplying dedicated credentials for firewall or proxy authentication
    • Securing a dynamic SoapHeader
  • Chapter 8: Concurrency
    • Introduction
    • Hosting a singleton instance service
    • Invoking a WCF service without blocking the front UI
    • Using throttling to control service concurrency
    • Ensuring termination of a client session
    • Tuning WCF concurrency performance via Visual Studio testing tools
  • Chapter 9: Extending WCF Runtime
    • Introduction
    • Using a custom ServiceHost
    • Intercepting operation parameters in a strong-type manner
    • Filtering operation requests based on message
    • Generic operation error handling with OperationInvoker
    • Altering operation messages via MessageInspector
    • Building a custom MessageEncoder
    • Centralizing authorization through a custom ServiceAuthorizationManager
  • Chapter 10: RESTful and AJAX-enabled WCF Services
    • Introduction
    • Building a self-hosted REST service
    • Using an auto-generated Help page
    • Mapping URL suffix to operation parameters
    • Applying OutputCache in a REST service
    • Implementing file download via REST endpoint
    • Consuming a WCF service from an ASP.NET AJAX client
    • Accessing a remote REST service in an AJAX client
  • Chapter 11: Interoperability
    • Introduction
    • Building a WS-I Basic Profile 1.1 compatible service
    • Consuming an ASMX Web Service from a WCF client
    • Accessing a WCF service via the WebRequest component
    • Consuming a WCF service with a raw MSMQ program
    • Using a WCF Service in Microsoft Office
  • Chapter 12: Diagnostics
    • Introduction
    • Using the WCF Test Client tool to test a service
    • Capturing WCF request/response messages via Fiddler tool
    • Using built-in tracing and message logging
    • Debugging in a Windows service host
    • Creating a custom Visual Studio Debugger Visualizer for WCF debugging
    • Using PerformanceCounters for WCF service monitoring
  • Chapter 13: Miscellaneous WCF Development Tips
    • Introduction
    • Creating test X.509 certificates for WCF Service
    • Managing X.509 certificates installed on service machine
    • Building an RSS feed service
    • Building a routing service
    • Registering WCF components manually in IIS server

Steven Cheng

Steven Cheng is a senior support engineer at Microsoft Global Technical Support Center where he has been supporting Microsoft software development technologies for more than 5 years. Currently, as a community leader, he is working actively in the MSDN newsgroup and forum communities.

Steven Cheng's technical specialties cover many popular areas of Microsoft development technologies including .NET framework, ASP.NET, XML WebService, Windows Communication Foundation, SharePoint development, and so on. His blog can be found at http://blogs.msdn.com/stcheng.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications +    Windows Presentation Foundation 4.5 Cookbook =
50% Off
the second eBook
Price for both: £29.05

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Share a physical address between multiple endpoints
  • Custom binding without a Timestamp header
  • Bind a WPF element with data from WCF service
  • Invoke a WCF service without blocking the front UI
  • Build a WCF service with ad hoc security mode
  • Intercept WCF operation messages with MessageInspector
  • Extend WCF security with custom AuthorizationManager
  • Build REST-style services with WCF
  • Call WCF services from AJAX script clients

 

In Detail

The Windows Communication Foundation 4.0 (WCF 4.0) is a .NET-based application programming interface for building and running connected systems. It enables secure and reliable communication among systems within an organization or across the Internet. This book deals with the difficult issues faced by a .NET developer while working with WCF.

WCF 4.0 is a communications infrastructure that unifies a broad array of distributed systems' capabilities in a composable, extensible architecture that supports multiple transports, messaging patterns, encodings, network topologies, and hosting models. This book is a collection of focused real-world recipes and covers basic recipes on topics such as working with contracts to more advanced topics such as extending WCF runtime. By the end of this book you will have valuable information that helps transform the potentially unproductive habits of .Net developers who work with WCF.

This book will take you through many concepts starting with complete support for contract-related design for WCF service development. You will learn to use WCF's built-in feature for building various service endpoints. Service hosting and configuration are important areas for building WCF services, especially at the service deployment stage, and are detailed in this book. You will find it easy to work with WCF client proxy generation and metadata publishing and discovery when you go through recipes such as customizing auto-generated service proxies.

The author then discusses the exchange of data in WCF service operation features, related to WCF data serialization. You will discover some useful tips for security in WCF service development and built-in features for developing concurrency control for your services built upon it.

One big plus is that you will learn to extend the existing WCF framework to achieve advanced functionality. You will find a dedicated chapter for RESTful and AJAX-enabled service development. Moving on, you will find several useful WCF service interoperability cases, which are important for a distributed service development platform. Towards the end of this book you will find some handy and useful diagnostic methods for troubleshooting.

Extend and secure the WCF framework and develop robust SOA applications with ease

Approach

The recipes in this book are easy to understand and follow as the author discusses real-world scenarios. The range of topics covered in this book will bring out the forward-thinking WCF developer in you. It is not a comprehensive reference to the whole of WCF, but a practical guide that boosts proficiency when working with the various features of WCF. The examples are supported by relevant background information for ease of understanding.

Who this book is for

If you work with Windows Communication Foundation 4.0 and you want to be efficient when working with WCF features such as interoperability, proxy generation, and security, you will find this book very useful. With this book you will be able to find quick and handy solutions for various kinds of service development scenarios using Microsoft Windows Communication Foundation 4.0. To follow the recipes you will need to be comfortable with .NET Framework, C# programming, and the basics of SOA and how to develop them.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software