Big Problem with WebService
-
I need to connect to multiple servers and call their web methods of the webservice. But the problem is - the IP address of those servers will be known to me only in run time and this list may change. The same web-service will be running in each of these servers except that- they have different IP Addresses. I accessed web-services from clients by adding the web-services as web-reference(with specifying web url). But in this case- it doesn't seem possible. Can anyone please give me some ideas about how i can do this? thanks
Chayan
-
I need to connect to multiple servers and call their web methods of the webservice. But the problem is - the IP address of those servers will be known to me only in run time and this list may change. The same web-service will be running in each of these servers except that- they have different IP Addresses. I accessed web-services from clients by adding the web-services as web-reference(with specifying web url). But in this case- it doesn't seem possible. Can anyone please give me some ideas about how i can do this? thanks
Chayan
-
Add a reference to one of the services. Once you have created an instance of the generated class, you can change the Url property to make it connect to any of the servers.
--- single minded; short sighted; long gone;
thanks a lot man !!! this is such a simple and cool solution..thanks for the great help.
Chayan