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. Web Development
  3. how do you test (through code) if the web service is available

how do you test (through code) if the web service is available

Scheduled Pinned Locked Moved Web Development
csharphelpquestion
2 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.
  • R Offline
    R Offline
    Rafferty Uy
    wrote on last edited by
    #1

    Hello, How do you test if the web service is available? Is this simply doing a try {...} catch(System.Net.WebException) {...) in every block of code where I try to access the web service? Thank you for your help, ~Rafferty

    I 1 Reply Last reply
    0
    • R Rafferty Uy

      Hello, How do you test if the web service is available? Is this simply doing a try {...} catch(System.Net.WebException) {...) in every block of code where I try to access the web service? Thank you for your help, ~Rafferty

      I Offline
      I Offline
      IamMohan
      wrote on last edited by
      #2

      Hi, Do you want to test whether the webservice is available or to know whether the available webservice is running?? When you want to test whether the avilable webservice is running: 1) It will throw a runtime exception as soon as you instantiate the Websevice in your implementation page. When you want to test whether the webservice is available: 1) It will not allow to connect to the particular URL if it is not avaialbel from the WebReference dialog box. ;) Regards

      Mohan

      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