Dynamically Change URL OF Web Service

During Web Application Development and Implementation There are Required to Dynamic Change Url Of Web Service.It's Can Be Done by Following Way.

Add Key In Web.Config With Web Service Path name So it's can be Later Change after Published.

  < add key="save_photo" value="http://comp-7/TestMobile/Service.asmx" > 

Now in Class Where you Are Using this Web Service Do Following

localhost.Service service_all = new localhost.Service();
service_all.Timeout = 10000;
service_all.Url = ConfigurationManager.AppSettings["save_photo"]; 

Enjoy !!!!!!!

Prev Post                                                      All Post                                                           Next Post

Posted in |


  1. sumit Says:

    Thanx for the information.
    Just wanna know that can we develop bootable applications like c if yes plz send sugations to sumitsngh7@gmail.com

  2. Anonymous Says:

    Not Known Dude But Hope Somebody Give Answer.

  3. Anonymous Says:

    Hi Anish Here
    How to Put Radio Button or check box or hyperlink in datagridview in asp.net2.0.

    waiting for your reply.

  4. DuraiPandy Says:

    Thanks For U r valuable Information

  5. Stuart Dobson Says:

    This is not much use for webservices that VS puts into < applicationSettings > section

Post a Comment