I am trying to Verify if the WSDL is UP and Running or NOT in VB Script.
IF we open the WSDL in browser, if we get an XML in that then the WSDL is UP and Running
If it is blank/timing out/not responding then WSDL is DOWN
I want to write a VB Script program for this?
I was expecting some thing like this in VB Script to run in QTP/UFT or EXCEL VBA MACRO.
This program is written in Java
public static void main(String args[]) {
String wsdl = "http://lxomavnat005.dev.qintra.com:10301/icl/services/ICL_2_0?wsdl";
URL url = null;
URLConnection urlConnection = null;
try {
url = new URL(wsdl);
urlConnection = url.openConnection();
if (urlConnection.getContent() != null) {
System.out.println("GOOD URL");
} else {
System.out.println("BAD URL");
}
} catch (IOException ex) {
System.out
.println("Failed opening connection. Perhaps WS is not up?");
}
}
This Program just check the content is loading or not and decides if it running or not
Any Ideas
Something like this should work.
I tested using a SharePoint 2010 web service.
Following is similar, using Microsoft WinHTTP Services v5.1 instead of Microsoft XMLHTTP