HighTechTalks DotNet Forums  

Re: Dynamic URL for the web-service

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Re: Dynamic URL for the web-service in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Henke
 
Posts: n/a

Default Re: Dynamic URL for the web-service - 08-18-2003 , 03:40 AM






Thanks Tony, that's nice!
/Henke

"Wor Tony" <anthony (AT) anthonypounder (DOT) SHOES.com> skrev i meddelandet
news:OOtKFg2YDHA.2484 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Quote:
"gopi" <gopi_krishna_s (AT) yahoo (DOT) com> wrote in message
news:045001c3617c$ad18d2b0$a001280a (AT) phx (DOT) 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





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.