Multiple Servers with identical services
I have a dozen servers in different locations all running the same web service application but each going against their own SQL Server DB. I am writing a desktop application that consumes the web services. I want to present the user with a drop down of all servers in the network that are running the same wweb service application. Do I have to add a ServiceReference for each of the servers running the web 开发者_如何学Pythonservice app and thereby having as many proxies as there are servers? Or can a define a single instance of the services and dynamically build a list of endpoints to select from a drop down?
If they are all using the same webservice code, just add one reference, then swap out the URL on the proxy before making calls with the proper endpoint.
精彩评论