2
Answers

Changing a Web Reference URL at runtime?

Administrator

Administrator

22y
2.5k
1
I have an inventory application that uses a web service for security authorization. I would like the program to be identical for each client, and have them have a config file that has contains the url for the web service. (eg. ClientName.myinventoryprogram.com/signOn.asmx) Is it possible to change this URL at runtime, even though it was added as a Web Reference to the project?
Answers (2)
0
Administrator

Administrator

Admin 2.3k 1.3m 22y
You could try using the MS SOAP Toolkit to create a reference the the WSDL at runtime rather than a generated proxy at compile time. On my current system we have Java and VB6 clients talking to a C# web service, they both connect dynamically to avoid such problems. The other alternative, if you have the resources, is to host your site within a webfarm. As far as I understand, this means the physical machine you map an IP address to can change, without clients realising. Regards, Liam
0
Administrator

Administrator

Admin 2.3k 1.3m 22y
Any information would be appreciated