Microsoft 9GD00001 Computer Accessories User Manual


 
Chapter 11: Deploying Web Services with WCF 327
and select Add Service Reference. You’ll see the Add Service Reference window,
shown in Figure 11-11.
As you may recall from previous discussion in this chapter, we spent some time on
setting up a Web service and configuring the Web service address. Now the address comes
into focus because it is where the Web service is deployed—you type it into the Address
box in the Add Service Reference window, shown in Figure 11-11. If you are using the
Web server built into VS to use a Web service project in the same solution, it is convenient
to click the Discover button, which will give you a list of Web services in the same
solution as the project you are adding the service reference to. The address in Figure 1
1-11
is different from what you’ll see on your computer because the project name, port number,
and service name will be different.
If you need to use a deployed Web service, you would put the address of the deployed Web
service in the Address box. For example, earlier in this chapter you saw how we deployed
a Web service to the local IIS server and that to use that deployed Web service you would
Figure 11-11 The Add Service Reference window