[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webservices

Re: Dynamic URL for the web-service

Henke

8/18/2003 8:41:00 AM

Thanks Tony, that's nice!
/Henke

"Wor Tony" <anthony@anthonypounder.SHOES.com> skrev i meddelandet
news:OOtKFg2YDHA.2484@TK2MSFTNGP09.phx.gbl...
> "gopi" <gopi_krishna_s@yahoo.com> wrote in message
> news:045001c3617c$ad18d2b0$a001280a@phx.gbl...
> > You can use as follows. U can delete Web referecne of yor
> > project, but keep proxy class as part of your project.
> >
> > myservice = New Testservice()
> > myservice.Url = ConfigurationSettings.AppSettings.Get
> > ("myurl")
> >
> If you're using VS.Net 2003, you can right click on the web ref and
> set the url type to be dynamic instead of static and your proxy class
> will look up the web reference from your config file without you having to
> write any code.
>
> HTH
>
> Wor Tony
> Nottingham - UK
>
>