Creating the Client and Adding a Service Reference

Add a new Console project to the current solution and name it BookClient. The first step you have to accomplish is adding a service reference to the WCF service. Right-click the new project name in Solution Explorer and select Add Service Reference. This brings up the Add Service Reference dialog where you need to enter the full Web address of your service. If the service you want to add a reference to is available in the current solution, as in the current example, simply click Discover. The service appears in the dialog, as shown in Figure 41.4.

Figure 41.4 The Add Service Reference dialog enables adding a reference to a WCF service.

Click the service name on the left to allow the development ...

Get Visual Basic® 2010 Unleashed 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.