home links tips
code users tools tutorials projects web help design
mudabone
suletzki trans48
nutrition reality
MarthaAttire!
| |
Dynamically Change Webservice URL
|
Basically:
- register a webservice
- right click the webservice change URL Behavior to Dynamic
- click the 'show all files' icon in solution explorer
- in the web reference edit the Reference.cs file
- comment out the class constructor and change it to this
// public ArchivingFaxes() { // string urlSetting = System.Configuration.ConfigurationSettings.AppSettings["FaxFiling.protus.ArchivingFaxes"]; // if ((urlSetting != null)) { // this.Url = string.Concat(urlSetting, ""); // } // else { // this.Url = "https://www.protusfax.com/protus/xmlwebservices/archivingfaxes/archiving.asmx"; // } // } public ArchivingFaxes(string inputURL) { this.Url = inputURL; }
Then you can set the URL when you instantiate the class.
back to tips
Comments:
Last Modified 1/29/05 1:46 PM
| Hide Tools
|