dims 2002/10/30 05:54:23
Modified: java/test/dynamic TestDynamicInvoker.java
Log:
Handle connect exception for wsdl
Revision Changes Path
1.6 +16 -4 xml-axis/java/test/dynamic/TestDynamicInvoker.java
Index: TestDynamicInvoker.java
===================================================================
RCS file: /home/cvs/xml-axis/java/test/dynamic/TestDynamicInvoker.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- TestDynamicInvoker.java 28 Oct 2002 15:43:46 -0000 1.5
+++ TestDynamicInvoker.java 30 Oct 2002 13:54:23 -0000 1.6
@@ -70,12 +70,15 @@
try {
String[] args = new
String[]{"http://www.xmethods.net/sd/2001/TemperatureService.wsdl", "getTemp",
"02067"};
DynamicInvoker.main(args);
+ } catch (java.net.ConnectException ce) {
+ System.err.println("getTemp connect error: " + ce);
+ return;
} catch (java.rmi.RemoteException re) {
if (re instanceof AxisFault) {
AxisFault fault = (AxisFault) re;
if (fault.detail instanceof ConnectException ||
fault.getFaultCode().getLocalPart().equals("HTTP")) {
- System.err.println("TerraService HTTP error: " + fault);
+ System.err.println("getTemp HTTP error: " + fault);
return;
}
}
@@ -87,12 +90,15 @@
try {
String[] args = new
String[]{"http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl",
"getQuote", "IBM"};
DynamicInvoker.main(args);
+ } catch (java.net.ConnectException ce) {
+ System.err.println("getQuote connect error: " + ce);
+ return;
} catch (java.rmi.RemoteException re) {
if (re instanceof AxisFault) {
AxisFault fault = (AxisFault) re;
if (fault.detail instanceof ConnectException ||
fault.getFaultCode().getLocalPart().equals("HTTP")) {
- System.err.println("TerraService HTTP error: " + fault);
+ System.err.println("getQuote HTTP error: " + fault);
return;
}
}
@@ -104,12 +110,15 @@
try {
String[] args = new
String[]{"http://mssoapinterop.org/asmx/xsd/round4XSD.wsdl",
"echoString(Round4XSDTestSoap)", "Hello World!!!"};
DynamicInvoker.main(args);
+ } catch (java.net.ConnectException ce) {
+ System.err.println("round4XSD connect error: " + ce);
+ return;
} catch (java.rmi.RemoteException re) {
if (re instanceof AxisFault) {
AxisFault fault = (AxisFault) re;
if (fault.detail instanceof ConnectException ||
fault.getFaultCode().getLocalPart().equals("HTTP")) {
- System.err.println("TerraService HTTP error: " + fault);
+ System.err.println("round4XSD HTTP error: " + fault);
return;
}
}
@@ -124,12 +133,15 @@
"3",
"4"};
DynamicInvoker.main(args);
+ } catch (java.net.ConnectException ce) {
+ System.err.println("MathService connect error: " + ce);
+ return;
} catch (java.rmi.RemoteException re) {
if (re instanceof AxisFault) {
AxisFault fault = (AxisFault) re;
if (fault.detail instanceof ConnectException ||
fault.getFaultCode().getLocalPart().equals("HTTP")) {
- System.err.println("TerraService HTTP error: " + fault);
+ System.err.println("MathService HTTP error: " + fault);
return;
}
}