Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Big Problem with WebService

Big Problem with WebService

Scheduled Pinned Locked Moved C#
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Iftekhar Naim
    wrote on last edited by
    #1

    I need to connect to multiple servers and call their web methods of the webservice. But the problem is - the IP address of those servers will be known to me only in run time and this list may change. The same web-service will be running in each of these servers except that- they have different IP Addresses. I accessed web-services from clients by adding the web-services as web-reference(with specifying web url). But in this case- it doesn't seem possible. Can anyone please give me some ideas about how i can do this? thanks

    Chayan

    G 1 Reply Last reply
    0
    • I Iftekhar Naim

      I need to connect to multiple servers and call their web methods of the webservice. But the problem is - the IP address of those servers will be known to me only in run time and this list may change. The same web-service will be running in each of these servers except that- they have different IP Addresses. I accessed web-services from clients by adding the web-services as web-reference(with specifying web url). But in this case- it doesn't seem possible. Can anyone please give me some ideas about how i can do this? thanks

      Chayan

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Add a reference to one of the services. Once you have created an instance of the generated class, you can change the Url property to make it connect to any of the servers.

      --- single minded; short sighted; long gone;

      I 1 Reply Last reply
      0
      • G Guffa

        Add a reference to one of the services. Once you have created an instance of the generated class, you can change the Url property to make it connect to any of the servers.

        --- single minded; short sighted; long gone;

        I Offline
        I Offline
        Iftekhar Naim
        wrote on last edited by
        #3

        thanks a lot man !!! this is such a simple and cool solution..thanks for the great help.

        Chayan

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups