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. Webservice To Webservice

Webservice To Webservice

Scheduled Pinned Locked Moved C#
questiondatabasesysadminhelp
4 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.
  • B Offline
    B Offline
    BASONJS
    wrote on last edited by
    #1

    Hi. I have created a component group consisting of a web service, windows service, database, etc. Each of these units(the component group being one unit) will be installed on a server (meaning each server will have a windows service, web service, database, etc). In order to call and use the web service I have consumed it and used it as a normal object. Ex: ExampleWebService myWebservice = new ExampleWebService(); myWebservice.Create(); Now my question is here. I have a part of my program which reads the webservices' URLs from a database, and needs to call each webservice in order to check if its still alive or not, a kind of heartbeat monitor if you will. From one webservice, how do I call another, knowing its URL and by consuming it ? Any help will be greatly appreciated, thanks.

    W 1 Reply Last reply
    0
    • B BASONJS

      Hi. I have created a component group consisting of a web service, windows service, database, etc. Each of these units(the component group being one unit) will be installed on a server (meaning each server will have a windows service, web service, database, etc). In order to call and use the web service I have consumed it and used it as a normal object. Ex: ExampleWebService myWebservice = new ExampleWebService(); myWebservice.Create(); Now my question is here. I have a part of my program which reads the webservices' URLs from a database, and needs to call each webservice in order to check if its still alive or not, a kind of heartbeat monitor if you will. From one webservice, how do I call another, knowing its URL and by consuming it ? Any help will be greatly appreciated, thanks.

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      If you have a web method in each web service that is the same (for example each web service has method Alive() which returns boolean), use WSDL to generate a proxy and include that in your project. You don't need to add web service references to your project.Now you can control better the url and other properties. From there on it's like calling a normal web service. Addition: See for example: Invoking a Web Service Without Web Reference[^] Mika

      The need to optimize rises from a bad design. My articles[^]

      modified on Thursday, November 20, 2008 3:40 PM

      B 1 Reply Last reply
      0
      • W Wendelius

        If you have a web method in each web service that is the same (for example each web service has method Alive() which returns boolean), use WSDL to generate a proxy and include that in your project. You don't need to add web service references to your project.Now you can control better the url and other properties. From there on it's like calling a normal web service. Addition: See for example: Invoking a Web Service Without Web Reference[^] Mika

        The need to optimize rises from a bad design. My articles[^]

        modified on Thursday, November 20, 2008 3:40 PM

        B Offline
        B Offline
        BASONJS
        wrote on last edited by
        #3

        fantastic stuff. Thank you very much for your help :) James

        W 1 Reply Last reply
        0
        • B BASONJS

          fantastic stuff. Thank you very much for your help :) James

          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          You're welcome :)

          The need to optimize rises from a bad design. My articles[^]

          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