HighTechTalks DotNet Forums  

Re: Configure Web References from Web.Config

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


Discuss Re: Configure Web References from Web.Config in the ASP.net Web Services forum.



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

Default Re: Configure Web References from Web.Config - 08-21-2003 , 03:15 PM







"Ted" <sumesh.nair (AT) flytxt (DOT) com> wrote

Quote:
Hi,

I am consuming some Java Web Services from my ASP.NET app. I add the web
references and generate proxies through Visual Studio. During developement
the web references point to a test box. When I deploy my ASP.NET app to my
staging platform my web references are still pointing to my test box.
Can I change this and configure this from web.config. How does it work,
because the proxies are generated for me by visual studio?

If you're using VS.Net 2003, click the web reference and change url type
from
static to dynamic. If you're not using VS.Net 2003 you need to change the
generated proxy class to pick up the setting from web.config, from memory
use


System.Configuration.ConfigurationSettings.AppSett ings[nameofsettinginweb.co
nfig]

HTH

AP
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.