How to check if a web service is up and running without using ping?

后端 未结 8 959
小蘑菇
小蘑菇 2020-12-30 09:42

How can i check if a method in a web service is working fine or not ? I cannot use ping. I still want to check any kind of method being invoked from the web service by the c

8条回答
  •  长发绾君心
    2020-12-30 10:14

    As I see it, you have 2 options:

    • If you can access the server it is running on, Log every call (and exceptions thrown).
      Read the log file with a soft like baretail that updates as the file is being written.

    • If you can't access the server, then you have to make the webservice write that log remotely to another computer you have access to.
      Popular loggers have this functionality built in. (Log4Net, ...)

提交回复
热议问题