I am creating a web service which will be available on only one of two
servers at a time. Both servers will have exactly the same services running
but one will be a backup which just waits doing nothing. They will both have
WSDL files on with
the only difference being the <soap:address location="" /> value in the
<service> element.
The service consumer (ASP.NET pages) will get the current live server to use
from a function (call it GetServer()) which will return a hostname. I want
to update the Web Reference in the project with the WSDL from the host
returned by GetServer().
I figure my options are:
1. Make the project change the URL of the WSDL file it is using and then
recompile the proxy classes. (I dont yet know how to change the URL of the
reference.)
2. Store the WSDL files on the same web server as the ASP.NET pages and make
a seperate program which opens the WSDL file and physically changes the
value.
The problem is i dont know how to make the project update the web reference?
How can i do this?
Any suggestions would be greatfully received.
Thanks
Ben Crinion