checking whether a web-service is reachable