You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by ru...@apache.org on 2001/12/10 00:19:36 UTC
cvs commit: xml-soap/java/samples/interop EchoTestClient.java
rubys 01/12/09 15:19:36
Modified: java/samples/interop EchoTestClient.java
Log:
Distinguish between the various types of failures...
Revision Changes Path
1.15 +5 -3 xml-soap/java/samples/interop/EchoTestClient.java
Index: EchoTestClient.java
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/interop/EchoTestClient.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- EchoTestClient.java 2001/11/10 02:28:09 1.14
+++ EchoTestClient.java 2001/12/09 23:19:36 1.15
@@ -253,7 +253,7 @@
// check response
if (resp.generatedFault()) {
Fault fault = resp.getFault ();
- System.out.println(methodName + "\t FAIL: " + fault.getFaultString());
+ System.out.println(methodName + "\t Fault: " + fault.getFaultString());
} else {
Parameter ret = resp.getReturnValue();
Object output = (ret==null) ? null : ret.getValue();
@@ -262,12 +262,14 @@
if (equals(input,output)) {
System.out.println(methodName + "\t OK");
} else {
- System.out.println(methodName + "\t FAIL: " + output);
+ System.out.println(methodName + "\t Fail: " + output);
}
}
+ } catch (SOAPException se) {
+ System.out.println(methodName + "\t Fault: " + se.getMessage());
} catch (Exception e) {
- System.out.println(methodName + "\t FAIL: " + e);
+ System.out.println(methodName + "\t Exception: " + e);
}
}
}