PacktLib: Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications

Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications

Credits

Foreword

About the Author

About the Reviewers

Preface

Working with Contracts

Introduction

Defining a one-way Contract

Endpoint, Binding, and Behavior

Introduction

Configuring Default Endpoints

Hosting and Configuration

Introduction

Hosting a service in a console application

Service Discovery and Proxy Generation

Introduction

Creating a typed service client

Channel and Messaging

Introduction

Using ChannelFactory to consume a WCF service

Invoking async operation via ChannelFactory

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

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

Concurrency

Introduction

Hosting a singleton instance service

Invoking a WCF service without blocking the front UI

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

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

Interoperability

Introduction

Building a WS-I Basic Profile 1.1 compatible service

Consuming an ASMX Web Service from a WCF client

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

Miscellaneous WCF Development Tips

Introduction

Creating test X.509 certificates for WCF Service