Adding web reference at runtime

Discussion in 'ASP .Net Web Services' started by rkuzmiak, Jan 11, 2006.

  1. rkuzmiak

    rkuzmiak Guest

    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.
     
    rkuzmiak, Jan 11, 2006
    #1
    1. Advertising

  2. rkuzmiak

    Josh Twist Guest

    1. Advertising

  3. rkuzmiak

    rkuzmiak Guest

    What is MyService() class?

    How to declare class inheriting from WebService at client?
     
    rkuzmiak, Jan 11, 2006
    #3
  4. rkuzmiak

    rkuzmiak Guest

    rkuzmiak, Jan 11, 2006
    #4
  5. rkuzmiak

    Josh Twist Guest

    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
     
    Josh Twist, Jan 11, 2006
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Saumendra
    Replies:
    0
    Views:
    1,242
    Saumendra
    Jun 24, 2003
  2. Kiran
    Replies:
    3
    Views:
    756
  3. wawa_piggy

    Adding a web reference to a java web service

    wawa_piggy, Apr 19, 2004, in forum: ASP .Net Web Services
    Replies:
    5
    Views:
    171
    Dino Chiesa [Microsoft]
    Apr 22, 2004
  4. only_me

    vs2005 consuming web service, adding web reference ?

    only_me, Sep 20, 2005, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    203
    only_me
    Sep 25, 2005
  5. Replies:
    8
    Views:
    160
Loading...

Share This Page