How do I test connectivity to an unknown web service in C#?

前端 未结 5 1106
鱼传尺愫
鱼传尺愫 2021-01-01 21:53

I\'m busy writing a class that monitors the status of RAS connections. I need to test to make sure that the connection is not only connected, but also that it can communica

5条回答
  •  生来不讨喜
    2021-01-01 22:20

    How about opening a TCP/IP connection to the port used by the webservice? If the connection works, the RAS connection, the rest of the network and the host are all working. The webservice is almost certainly running too.

提交回复
热议问题