Book Image

WCF Multi-layer Services Development with Entity Framework - Fourth Edition

By : Mike Liu
Book Image

WCF Multi-layer Services Development with Entity Framework - Fourth Edition

By: Mike Liu

Overview of this book

Table of Contents (20 chapters)
WCF Multi-layer Services Development with Entity Framework Fourth Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
2
Hosting the HelloWorld WCF Service
Index

Extending HelloWorldService


Now that we have learned the basic concepts and theories of the WCF extension, let's do some practical work to further understand it. In this section, we will extend our HelloWorldService with a runtime behavior, inspecting and logging the incoming and outgoing messages of the service.

Setting up the service

First, we will set up a copy of HelloWorldService with no extensions. We will extend this service in the following sections to inspect and log all incoming and outgoing messages.

To set up the service, follow these steps:

  1. You can refer to Chapter 1, Implementing a Basic HelloWorld WCF Service, and Chapter 2, Hosting the HelloWorld WCF Service, of this book to get the HelloWorld solution ready.

  2. Create a new folder, HostIISExtended, under the C:\SOAwithWCFandEF\Projects\HelloWorld folder.

  3. Copy all files from HostIIS to this new folder.

  4. Start IIS Manager and add a new application HelloWorldServiceExtended, pointing to this new folder.

  5. Test it with the following URL in...