Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / June 2004

Tip: Looking for answers? Try searching our database.

WebService newbie - consuming in multi-tier dev env... (DEV-UAT-PROD)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AC - 12 Jun 2004 12:15 GMT
I have a web service that we have deployed in our development, UAT, and production environment.  When I add the web service to a project, I want to reference the developemnt instance... but when we go into production, I want to reference the production instance... different URLS.

When you add a web reference to a project, it assumes the name of the one you point to... in developemnt, t hat's the dev one.  However I'd like to just give it a generic name and assign the actual target/source at runtime (and keep the actual URL in the web.config).  Seems easy, I'm just having a hard time implementing it.
Jan Tielens - 14 Jun 2004 08:17 GMT
Actually this is very easy! Just select the web service node from the solutions explorer in VS.NET. Then change the URL Behavior proprety to Dynamic. VS.NET will automatically create the settings in the .config file. The setting will automatically be read if it's available in the .config file.

Signature

Greetz
Jan
________________
Read my weblog: http://weblogs.asp.net/jan

 I have a web service that we have deployed in our development, UAT, and production environment.  When I add the web service to a project, I want to reference the developemnt instance... but when we go into production, I want to reference the production instance... different URLS.

 When you add a web reference to a project, it assumes the name of the one you point to... in developemnt, t hat's the dev one.  However I'd like to just give it a generic name and assign the actual target/source at runtime (and keep the actual URL in the web.config).  Seems easy, I'm just having a hard time implementing it.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.