Sig of the Week
Butters go buy World of Warcraft, install it on your computer, and join the online sensation before we all murder you.
NavigationPandoa MusicFlickRUseful Sites
NEW Corvette GMX 245WeatherSan Diego, CA User loginWho's onlineThere are currently 0 users and 0 guests online.
|
Creating Dymanic Web Service References in Visual Studio .NET 2003Submitted by tfiske on Wed, 04/13/2005 - 15:46.
Found the following samples that help you create a web service in a .NET project that is Dynamic. I got tired of having to create versions of my project every time we changed the web service URL. Especially as we moved from Dev, Test, Prod. The binaries were getting confusing. Dynamically Change Webservice URL
public wsMLA(string urlSetting) {
// string urlSetting = System.Configuration.ConfigurationSettings.AppSettings["wsMLA-test.com.company.wsMLA"];
if ((urlSetting != null)) {
this.Url = string.Concat(urlSetting, "");
}
else {
this.Url = "http://wsMLA.company.com/wsMLA/wsMLA.asmx";
}
}
Then you can set the URL when you instantiate the class. Thanks goes to the folks at dotnet.editme.com |