Go to theHostproject and right-click on the
app.config file. Select Edit WCF Configuration. You'll see the Service Configuration Editor interface shown in Figure 1-21. Go to the Tasks pane and click "Create a New Service"; the New Service Element Wizard will be displayed.
Follow these instructions as you go through each page in the wizard:
a. On the first page, you are asked to provide the service type. Browse to
<YourLearningWCFPath>\Labs\Chapter1\HelloIndigo\Host\Bin\Debug and select
Host.exe. The Type Browser dialog (shown in Figure 1-22) will list
Host.HelloIndigoServiceas the only service available in the assembly. Select it from the list and click Open. Click Next to continue.
b. Now you will be asked to specify a service contract. There is only one service contract implemented by
HelloIndigoService, so the selected service contract should be
Host.IHelloIndigoService. Click Next to continue.
c. Select HTTP as your service communication mode and click Next.
d. Select Basic Web Services interoperability as your interoperability method and click Next.
e. Now you'll be asked to provide an endpoint address. Here you can provide a relative address by clearing the current text and typing "HelloIndigoService." Click Next.
f. Review the configuration you have chosen for the service, then click Finish.

Figure 1-21. Service Configuration Editor for WCF