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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Lalit MPosted Feb 6, 2010, 1:37 PM
// 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;
}
Ryan AlfordPosted Aug 19, 2008, 12:43 PM
WebServerObjectName webServer = new WebServerObjectName();
webServer.Uri = [IPaddress or DNS name];
Mahesh ChandPosted Aug 18, 2008, 12:07 PM
Anushka ThilakarathnePosted Aug 18, 2008, 8:02 AM
Jan MontanoPosted Aug 18, 2008, 6:44 AM
then in your config file, add something like this