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