I have a problem with a small app I am writing in c~ .net using Visual Studio 2010.
When I add a web reference, and set it as "dynamic" so that I can later change the URL that is used to access it, I come across a problem.
Although, the application does indeed access the web reference at the URL I later specify using:
proxy.URL = "http://pathtothewsdl
In the proxy file that is generated by Visual Studio for the web reference, it is littered with hard coded references to the namespace of the web reference... i.e....
This kind of thing repeated for every function specified in the WSDL and every custom type defined in there too.
This causes the app to start randomly throwing errors when I change the URL for the web reference, which I need to do, as I am actually calling an identical web reference on two different servers (the app does a sync of data between two identical applications sat on two different servers).
Any clues how I can make the "dynamic" web reference, so it actually IS dynamic?!