ws-soap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-soap/java/samples/interop EchoTestClient.java
Date Sun, 09 Dec 2001 23:19:36 GMT
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);
       }
     }
   }
  
  
  

Mime
View raw message