dims        2002/06/22 09:15:34

  Modified:    java/test/functional TestJAXMSamples.java
  Log:
  Verbose information if we get a SOAPException.
  
  Revision  Changes    Path
  1.5       +15 -0     xml-axis/java/test/functional/TestJAXMSamples.java
  
  Index: TestJAXMSamples.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/functional/TestJAXMSamples.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestJAXMSamples.java      19 Jun 2002 19:11:50 -0000      1.4
  +++ TestJAXMSamples.java      22 Jun 2002 16:15:34 -0000      1.5
  @@ -79,6 +79,21 @@
               log.info("Testing JAXM UddiPing sample.");
               UddiPing.searchUDDI("IBM", 
"http://www-3.ibm.com/services/uddi/testregistry/inquiryapi";);
               log.info("Test complete.");
  +        } catch (javax.xml.soap.SOAPException e) {
  +            Throwable t = e.getCause();
  +            if (t != null) {
  +                t.printStackTrace();
  +                if (t instanceof AxisFault) {
  +                    if (((AxisFault) t).detail instanceof ConnectException) {
  +                        System.out.println("Connect failure caused JAXM UddiPing to 
be skipped.");
  +                        return;
  +                    }
  +                }
  +                throw new Exception("Fault returned from test: " + t);
  +            } else {
  +                e.printStackTrace();
  +                throw new Exception("Exception returned from test: " + e);
  +            }
           } catch (Throwable t) {
               t.printStackTrace();
               throw new Exception("Fault returned from test: " + t);
  
  
  


Reply via email to