Many newcomers will always be confused when they are dynamically quote WebService. In fact, this problem is very simple. I used to have a way to add a way to construct a function in Reference.cs when I have solved this problem.
Public service1 (String URL)
{This.url = url;}
Of course, this is not a way, but when we update the web reference in the program, we must rewrite this constructor.
In fact, the solution to this problem is simple. After reference to WebService. The default attribute is static, we can change it to dynamic. This is the development environment automatically adds an app.config file for our programs and adds a node. (Web References are added to Web.config)
The value value is the WebService for reference.