You are creating an XML Web service named WeatherService that provides the current weather conditions for cities around the world. Your development cycle includes three stages:
development, testing, and production. In each stage, WeatherService will be deployed on a different server. For testing, you create an ASP.NET application named WeatherTest. To WeatherTest, you add a Web reference to WeatherService. You then build a user interface and add the necessary code to test the service. The WeatherService interface will not change between testing and deployment. You want to ensure that you do not have to recompile WeatherTest every time WeatherService is moved from one server to another. What should you do?
A.
Each time WeatherService is moved, set the URL property of the generated proxy class to the new location.
B.
Each time WeatherService is moved, set the Web Reference URL property of the generated proxy class to the new location.
C.
Set the URLBehavior property of the generated proxy class to dynamic. Each time WeatherService is
moved, update the appropriate key in
the Web.config file to indicate the new location.
D.
Take the location of WeatherService as input to WeatherTest, and set the Proxy property of all proxy class instances to that location.