Chapter 5. Channel and Messaging

In this chapter, we will cover:

  • 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

Introduction

When developing WCF services, we look at ServiceContract, endpoint, and binding configurations, which are very important in the service-oriented design view. However, under the service-oriented design view, there are many raw components that construct the WCF client and service. All these raw components provide a Channel model that allows developers to develop WCF services at a very low level. Instead of service operations and method parameters, ...

Get Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.