Modifying the Proxy Class
You might have noticed that the address of a Web service is hard-coded right into the proxy class. Although this might be handy, it's safe to assume that when you deploy your Web service, it won't be located on a server called "localhost,' as shown in Listing 10.6. The constructor in the generated class first looks for a setting in the web.config file's appSettings section called MyProject.Esteem.EsteemBooster. This is a convenient means of setting the location of the Web service without having to modify the code.This is not present in the older Visual Studio versions prior to 2005. Although you can alter the proxy class, it may be regenerated if you update the Web reference. The easiest way to get around this is to copy and paste the entire proxy class into your own class file and then replace the address with a reference to the web.config file's appSettings section.