I used pub.client:http service to check whether a specific server is up and running on a specific port so that if it successful,I want to invoke a webService.
I installed tomcat in my local which is running @8080 port. I have installed a webMethods in my work Station. When the Tomcat is up, in my local webMethods, http service is giving a status of 200 by passing http://localhost:8080/ as an input to url input parameter, when Tomcat is down, http service is throwing ‘Connection refused’ error.
Now issue is as below.
I have opened a firewall port from Dev server to my local machine. When I pass http://localhost:8080/ to url parameter of http service it is returning 200 though the server is up or down. I even checked with http://127.0.0.1:8080/ but it is still returning 200 status irrespective of whether Tomcat is up or down.
I even gave my IPV4 address in place of 127.0.0.1 in the URL but same 200 status is coming as output though Tomcat server is down. I even tried giving wrong server name like http://abc:8080/ but this also giving 200 status
Also kindly let me know any other way to check target server is up on a specific port before invoking a webService to push data to it.
Kindly help me to resolve this issue and let me know if you need any details from me.