Hi ,
I am developing a system with c#.net. in my app, i have to use a webservice. The URL of the service could by changed (dynamic). How can i do it programmatically ? actualy change the URL of the service.
Anushka
Hi ,
I am developing a system with c#.net. in my app, i have to use a webservice. The URL of the service could by changed (dynamic). How can i do it programmatically ? actualy change the URL of the service.
Anushka
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jan MontanoRank #1,295 · 1.3K reputationPosted Aug 18, 2008, 2:44 AM EDT
then in your config file, add something like this
Anushka Thilakarathne20 reputationPosted Aug 18, 2008, 4:02 AM EDT
Mahesh ChandRank #1 · 393.3K reputationPosted Aug 18, 2008, 8:07 AM EDT
Ryan AlfordRank #1,411 · 1.2K reputationPosted Aug 19, 2008, 8:43 AM EDT
WebServerObjectName webServer = new WebServerObjectName();
webServer.Uri = [IPaddress or DNS name];
Lalit MRank #1,186 · 1.5K reputationPosted Feb 6, 2010, 8:37 AM EST
// public ArchivingFaxes() {
Then you can set the URL when you instantiate the class.// string urlSetting = System.Configuration.ConfigurationSettings.AppSettings["FaxFiling.protus.ArchivingFaxes"];
// if ((urlSetting != null)) {
// this.Url = string.Concat(urlSetting, "");
// }
// else {
// this.Url = "https://abc.com";
// }
// }
public ArchivingFaxes(string inputURL)
{
this.Url = inputURL;
}