O'Reilly logo

Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications by Steven Cheng

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a service via ChannelListener

ChannelFactory provides a raw programming interface for building a WCF client. Likewise, there are also corresponding components at the Channel level for building a WCF service. Though the Channel level-based service might not look as comprehensible and convenient as those built via ServiceContract and ServiceHost, it is no less powerful than the former. It is quite simple and straightforward and clearly shows how the WCF service and endpoint actually work under the hood (at Channel level).

How to do it...

In this recipe, we will use a simple HTTP service that receives and returns text data to demonstrate how we can use a ChannelListener to build a raw WCF service:

  1. The first step is to construct a ChannelListener ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required