Adding web reference at runtime

R

rkuzmiak

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

rkuzmiak

What is MyService() class?

How to declare class inheriting from WebService at client?
 
J

Josh Twist

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top