C# Developers' Journal (original) (raw)

C# Developers' Journal [Most Recent Entries] [Calendar View] [Friends View]

Tuesday, May 20th, 2003

Time Event
2:43p Dynamic addressing of Web references Anyone found a was to dynamically set the url for a web reference (to a web service) through code?I need a way to pull the uri from a config file (web.config) at runtime so I can change the web service location (ie switch environments). I am NOT using UDDI, so that approach is moot, and I am trying to avoid re-writing the web service proxy class, but that is looking like the best option at this point (exposing a set method to the this.url property).Any other ideas?
2:43p Dynamic addressing of Web references Anyone found a was to dynamically set the url for a web reference (to a web service) through code?I need a way to pull the uri from a config file (web.config) at runtime so I can change the web service location (ie switch environments). I am NOT using UDDI, so that approach is moot, and I am trying to avoid re-writing the web service proxy class, but that is looking like the best option at this point (exposing a set method to the this.url property).Any other ideas?