My application needs to calls a number of web services that I have running on different machines. The web services are the same, but there are multiple machines that provide the web service.
My question is how to maintain a list of the web services so the user can pick which machine to run on? I've imported the web services to create the wsdl and discomap files, and in the web.config there is
<appSettings>
<add key="MBAnalyzerWSRef.MBAnalyzerWS_intf" value="http://127.0.0.1:1235/services/MBAnalyzerWS"/>
</appSettings>
I can add add additional keys all for the different machines that provide the service, but how to treat them as the same service, add them to an array and use them in c# code? Something like this is the goal:
wsList List<MBAnalyzerWSRef> = new List<MBAnalyzerWSRef>;
/* Add the services to the list */
wsList[0].DoWebServiceTask;
I hope I've made the question clear. TIA