Lets Have a fun with Technology.

BTemplates.com

Follow by Email

Saturday, September 27, 2008

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





5 comments:

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

    ReplyDelete
  2. Not Known Dude But Hope Somebody Give Answer.

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

    waiting for your reply.

    ReplyDelete
  4. Hi
    Thanks For U r valuable Information

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

    ReplyDelete