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 / January 2006

Tip: Looking for answers? Try searching our database.

Adding web reference at runtime

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rkuzmiak - 11 Jan 2006 09:56 GMT
Hi all,

I have to develop a following system:

One "global" manager connects to one of multiple "local" web services.
All
"local" web services have identical code - only thing they are
different is
machine they are installed on.

I want to add new "local" web services at execution time, I don't want
to
have their names (IP or DNS names) in code.

How can I do this?

Thanks in advance.
Rob.
Josh Twist - 11 Jan 2006 10:39 GMT
See this thread:
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet.webservi
ces/browse_thread/thread/fced047785d1201f/7b175e69ea58288d#7b175e69ea58288d


Josh
http://www.thejoyofcode.com/
rkuzmiak - 11 Jan 2006 11:17 GMT
What is MyService() class?

How to declare class inheriting from WebService at client?
rkuzmiak - 11 Jan 2006 11:43 GMT
OK, I got it.

You forgot to say that I have to do this:

   http://dotnet.editme.com/tipDynamicallyChangeWebserviceURL

This is for VS 2003. How to do this in VS 2005?
Josh Twist - 11 Jan 2006 14:52 GMT
MyService class is the Web Service Proxy class auto-generated when you
Add Web Reference.

I wouldn't do it the way the link you provided suggests because you
will lose your changes if you update the Web Reference.

I'm not as familiar with the new proxies generated in VS 2005 (I think
they use a resource now) but I'm pretty sure you can still
programmatically set the Url as I showed above.

Josh

Rate this thread:







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.