Chapter 2. Hosting the HelloWorld WCF Service

In the previous chapter, we built a basic HelloWorld WCF service and hosted it within IIS Express. In this chapter, we will explore more hosting options for WCF services, such as the following:

  • Hosting a WCF service in a console application
  • Hosting a WCF service in a Windows service application
  • Hosting a WCF service in IIS using the HTTP protocol
  • Hosting a WCF service in IIS using the TCP protocol
  • Testing a WCF service

WCF hosting options

From the previous chapter, we know that a WCF service can be hosted within IIS Express. This method is the most convenient way to host a WCF service during the development stage.

Besides IIS Express, a WCF service can also be hosted in a managed application, such as a command-line ...

Get WCF Multi-layer Services Development with Entity Framework Fourth Edition 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.