a webreference proxy class create a object.url property that you can change dynamically. I usually have different environments read in from the config, ie "dev", "prod", etc and based on that setting in the config file will set the webreference. To make it easier you can just read in the url for the webservice from a config file and set it at runtime before using the proxy.
----- Original Message ----- From: "Mike Andrews" <[EMAIL PROTECTED]> To: <ADVANCED-DOTNET@DISCUSS.DEVELOP.COM> Sent: Tuesday, October 25, 2005 3:26 PM Subject: [ADVANCED-DOTNET] Dynamically setting URL for webservice... Guys, I've got a webservice that I'm going to consume in a Web application. How can I add a web reference (for testing locally) and then change the reference later for moving to the webserver. The webservice will be located on various remote web servers. Or is that even possible? Thanks, Mike =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com