axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/test/wsdl/ram RamServiceTestCase.java RamSoapBindingImpl.java ram.wsdl
Date Wed, 19 Jun 2002 19:11:51 GMT
dims        2002/06/19 12:11:50

  Modified:    java/samples/addr AddressBookTestCase.java Main.java
               java/samples/attachments EchoAttachment.java
               java/samples/security Client.java
               java/samples/stock GetInfo.java GetQuote.java GetQuote1.java
               java/samples/transport/tcp GetQuote.java
               java/src/org/apache/axis AxisFault.java
               java/src/org/apache/axis/client AdminClient.java
               java/src/org/apache/axis/utils Admin.java
               java/test/functional TestAttachmentsSample.java
                        TestBidBuySample.java TestElementSample.java
                        TestJAXMSamples.java TestJAXRPCSamples.java
                        TestMessageSample.java TestMiscSample.java
                        TestProxySample.java TestStockSample.java
                        TestTCPTransportSample.java
                        TestTransportSample.java
               java/test/wsdl Wsdl2javaTestSuite.xml
               java/test/wsdl/addrNoImplSEI AddressBookTestCase.java
                        Main.java
               java/test/wsdl/multiref MultiRefTestCase.java
  Added:       java/test/wsdl/ram RamServiceTestCase.java
                        RamSoapBindingImpl.java ram.wsdl
  Log:
  - Added TestCase for Bug 9642 -  Java Date not deserialize properly (Bug seems to have been
fixed)
  - AxisFault now prints additional information when its printStackTrace() is called.
  - No need to call dump/dumptostring explicitly.
  - Makes it easy we can just do the following  without special instanceof for AxisFault.
  try {
     ...
  } catch (Exception e){
     e.printStackTrace();
  }
  
  Revision  Changes    Path
  1.6       +0 -1      xml-axis/java/samples/addr/AddressBookTestCase.java
  
  Index: AddressBookTestCase.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/addr/AddressBookTestCase.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AddressBookTestCase.java	19 Feb 2002 17:38:18 -0000	1.5
  +++ AddressBookTestCase.java	19 Jun 2002 19:11:49 -0000	1.6
  @@ -82,7 +82,6 @@
               log.info("Test complete.");
           }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) ((AxisFault)e).dump();
               e.printStackTrace();
               throw new Exception("Fault returned from test: "+e);
           }
  
  
  
  1.20      +1 -6      xml-axis/java/samples/addr/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/addr/Main.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- Main.java	24 Apr 2002 15:47:38 -0000	1.19
  +++ Main.java	19 Jun 2002 19:11:49 -0000	1.20
  @@ -162,12 +162,7 @@
               }
           }
           catch (Exception e) {
  -            if (e instanceof AxisFault) {
  -                System.err.println(((AxisFault) e).dumpToString());
  -            }
  -            else {
  -                e.printStackTrace();
  -            }
  +            e.printStackTrace();
           }
       }
   }
  
  
  
  1.15      +0 -3      xml-axis/java/samples/attachments/EchoAttachment.java
  
  Index: EchoAttachment.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/attachments/EchoAttachment.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- EchoAttachment.java	17 Jun 2002 00:33:48 -0000	1.14
  +++ EchoAttachment.java	19 Jun 2002 19:11:49 -0000	1.15
  @@ -339,9 +339,6 @@
               }
           }
           catch ( Exception e ) {
  -            if ( e instanceof AxisFault ) {
  -                ((AxisFault) e).dump();
  -            } 
               System.err.println(e);
                e.printStackTrace();
           }
  
  
  
  1.7       +1 -6      xml-axis/java/samples/security/Client.java
  
  Index: Client.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/security/Client.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Client.java	3 Jun 2002 16:07:54 -0000	1.6
  +++ Client.java	19 Jun 2002 19:11:49 -0000	1.7
  @@ -89,12 +89,7 @@
               XMLUtils.PrettyElementToStream(mc.getResponseMessage().getSOAPEnvelope().getAsDOM(),
System.out);
           }
           catch (Exception e) {
  -            if (e instanceof AxisFault) {
  -                System.err.println(((AxisFault) e).dumpToString());
  -            }
  -            else {
  -                e.printStackTrace();
  -            }
  +            e.printStackTrace();
           }
       }
   }
  
  
  
  1.23      +1 -2      xml-axis/java/samples/stock/GetInfo.java
  
  Index: GetInfo.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/stock/GetInfo.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- GetInfo.java	11 Jun 2002 14:53:49 -0000	1.22
  +++ GetInfo.java	19 Jun 2002 19:11:49 -0000	1.23
  @@ -98,8 +98,7 @@
         System.out.println( symbol + ": " + res );
       }
       catch( Exception e ) {
  -      if ( e instanceof AxisFault ) ((AxisFault)e).dump();
  -      else e.printStackTrace();
  +      e.printStackTrace();
       }
     }
   
  
  
  
  1.41      +1 -4      xml-axis/java/samples/stock/GetQuote.java
  
  Index: GetQuote.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/stock/GetQuote.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- GetQuote.java	11 Jun 2002 14:53:49 -0000	1.40
  +++ GetQuote.java	19 Jun 2002 19:11:49 -0000	1.41
  @@ -137,10 +137,7 @@
           System.out.println(gq.symbol + ": " + val);
       }
       catch( Exception e ) {
  -        if ( e instanceof AxisFault ) {
  -            System.err.println( ((AxisFault)e).dumpToString() );
  -        } else
  -            e.printStackTrace();
  +       e.printStackTrace();
       }
     }
     
  
  
  
  1.24      +1 -5      xml-axis/java/samples/stock/GetQuote1.java
  
  Index: GetQuote1.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/stock/GetQuote1.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- GetQuote1.java	11 Jun 2002 14:53:49 -0000	1.23
  +++ GetQuote1.java	19 Jun 2002 19:11:49 -0000	1.24
  @@ -249,11 +249,7 @@
             System.out.println( gq.symbol + ": " + val );
         }
         catch( Exception e ) {
  -          if ( e instanceof AxisFault ) {
  -              ((AxisFault)e).dump();
  -              e.printStackTrace();
  -          } else
  -              e.printStackTrace();
  +          e.printStackTrace();
         }
       }
   };
  
  
  
  1.22      +1 -4      xml-axis/java/samples/transport/tcp/GetQuote.java
  
  Index: GetQuote.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/transport/tcp/GetQuote.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- GetQuote.java	11 Jun 2002 14:53:50 -0000	1.21
  +++ GetQuote.java	19 Jun 2002 19:11:49 -0000	1.22
  @@ -149,10 +149,7 @@
               System.out.println(gq.symbol + ": " + val);
           }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) {
  -                ((AxisFault)e).dump();
  -            } else
  -                e.printStackTrace();
  +            e.printStackTrace();
           }
       }
       
  
  
  
  1.48      +10 -0     xml-axis/java/src/org/apache/axis/AxisFault.java
  
  Index: AxisFault.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/AxisFault.java,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- AxisFault.java	17 Jun 2002 18:55:04 -0000	1.47
  +++ AxisFault.java	19 Jun 2002 19:11:49 -0000	1.48
  @@ -310,4 +310,14 @@
       public String toString() {
           return faultString;
       }
  +
  +    public void printStackTrace(PrintStream ps) {
  +        ps.println(dumpToString());
  +        super.printStackTrace(ps);
  +    }
  +
  +    public void printStackTrace(java.io.PrintWriter pw) {
  +        pw.println(dumpToString());
  +        super.printStackTrace(pw);
  +    }
   };
  
  
  
  1.61      +0 -3      xml-axis/java/src/org/apache/axis/client/AdminClient.java
  
  Index: AdminClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/AdminClient.java,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- AdminClient.java	31 May 2002 19:08:06 -0000	1.60
  +++ AdminClient.java	19 Jun 2002 19:11:49 -0000	1.61
  @@ -340,9 +340,6 @@
                   System.out.println(result);
               else
                   System.exit(1);
  -        } catch (AxisFault af) {
  -            log.error(JavaUtils.getMessage("axisFault01", af.dumpToString()));
  -            System.exit(1);
           } catch (Exception e) {
               log.error(JavaUtils.getMessage("exception00"), e);
               System.exit(1);
  
  
  
  1.115     +0 -4      xml-axis/java/src/org/apache/axis/utils/Admin.java
  
  Index: Admin.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/Admin.java,v
  retrieving revision 1.114
  retrieving revision 1.115
  diff -u -r1.114 -r1.115
  --- Admin.java	19 Jun 2002 16:13:17 -0000	1.114
  +++ Admin.java	19 Jun 2002 19:11:50 -0000	1.115
  @@ -318,10 +318,6 @@
                   admin.process(msgContext, doc.getDocumentElement());
               }
           }
  -        catch( AxisFault af ) {
  -            log.error( JavaUtils.getMessage("axisFault01", af.dumpToString()) );
  -            throw af;
  -        }
           catch( Exception e ) {
               log.error( JavaUtils.getMessage("errorProcess00", args[i]), e );
               //System.exit( 1 );
  
  
  
  1.3       +0 -1      xml-axis/java/test/functional/TestAttachmentsSample.java
  
  Index: TestAttachmentsSample.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/functional/TestAttachmentsSample.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestAttachmentsSample.java	1 May 2002 18:40:47 -0000	1.2
  +++ TestAttachmentsSample.java	19 Jun 2002 19:11:50 -0000	1.3
  @@ -113,7 +113,6 @@
               log.info("Test complete.");
           }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) ((AxisFault)e).dump();
               e.printStackTrace();
               throw new Exception("Fault returned from test: "+e);
           }
  
  
  
  1.11      +0 -1      xml-axis/java/test/functional/TestBidBuySample.java
  
  Index: TestBidBuySample.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/functional/TestBidBuySample.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TestBidBuySample.java	19 Feb 2002 17:38:22 -0000	1.10
  +++ TestBidBuySample.java	19 Jun 2002 19:11:50 -0000	1.11
  @@ -92,7 +92,6 @@
               log.info("Test complete.");
           }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) ((AxisFault)e).dump();
               e.printStackTrace();
               throw new Exception("Fault returned from test: "+e);
           }
  
  
  
  1.6       +0 -1      xml-axis/java/test/functional/TestElementSample.java
  
  Index: TestElementSample.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/functional/TestElementSample.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestElementSample.java	9 Jun 2002 02:01:11 -0000	1.5
  +++ TestElementSample.java	19 Jun 2002 19:11:50 -0000	1.6
  @@ -111,7 +111,6 @@
               log.info("Test complete.");
           }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) ((AxisFault)e).dump();
               e.printStackTrace();
               throw new Exception("Fault returned from test: "+e);
           }
  
  
  
  1.4       +0 -3      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestJAXMSamples.java	4 Jun 2002 12:46:56 -0000	1.3
  +++ TestJAXMSamples.java	19 Jun 2002 19:11:50 -0000	1.4
  @@ -80,7 +80,6 @@
               UddiPing.searchUDDI("IBM", "http://www-3.ibm.com/services/uddi/testregistry/inquiryapi");
               log.info("Test complete.");
           } catch (Throwable t) {
  -            if (t instanceof AxisFault) ((AxisFault) t).dump();
               t.printStackTrace();
               throw new Exception("Fault returned from test: " + t);
           }
  @@ -97,7 +96,6 @@
               if (t != null) {
                   t.printStackTrace();
                   if (t instanceof AxisFault) {
  -                    ((AxisFault) t).dump();
                       if (((AxisFault) t).detail instanceof ConnectException) {
                           System.out.println("Connect failure caused JAXM DelayedStockQuote
to be skipped.");
                           return;
  @@ -109,7 +107,6 @@
                   throw new Exception("Exception returned from test: " + e);
               }
           } catch (Throwable t) {
  -            if (t instanceof AxisFault) ((AxisFault) t).dump();
               t.printStackTrace();
               throw new Exception("Fault returned from test: " + t);
           }
  
  
  
  1.3       +0 -2      xml-axis/java/test/functional/TestJAXRPCSamples.java
  
  Index: TestJAXRPCSamples.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/functional/TestJAXRPCSamples.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestJAXRPCSamples.java	8 Apr 2002 14:35:13 -0000	1.2
  +++ TestJAXRPCSamples.java	19 Jun 2002 19:11:50 -0000	1.3
  @@ -112,7 +112,6 @@
               log.info("Test complete.");
           }
           catch (Throwable t) {
  -            if (t instanceof AxisFault) ((AxisFault)t).dump();
               t.printStackTrace();
               throw new Exception("Fault returned from test: " + t);
           }
  @@ -135,7 +134,6 @@
               log.info("Test complete.");
           }
           catch (Throwable t) {
  -            if (t instanceof AxisFault) ((AxisFault)t).dump();
               t.printStackTrace();
               throw new Exception("Fault returned from test: " + t);
           }
  
  
  
  1.4       +0 -1      xml-axis/java/test/functional/TestMessageSample.java
  
  Index: TestMessageSample.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/functional/TestMessageSample.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestMessageSample.java	22 Apr 2002 18:34:11 -0000	1.3
  +++ TestMessageSample.java	19 Jun 2002 19:11:50 -0000	1.4
  @@ -105,7 +105,6 @@
               log.info("Test complete.");
           }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) ((AxisFault)e).dump();
               e.printStackTrace();
               throw new Exception("Fault returned from test: "+e);
           }
  
  
  
  1.12      +0 -1      xml-axis/java/test/functional/TestMiscSample.java
  
  Index: TestMiscSample.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/functional/TestMiscSample.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- TestMiscSample.java	31 May 2002 19:08:11 -0000	1.11
  +++ TestMiscSample.java	19 Jun 2002 19:11:50 -0000	1.12
  @@ -119,7 +119,6 @@
               log.info("Test complete.");
           }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) ((AxisFault)e).dump();
               e.printStackTrace();
               throw new Exception("Fault returned from test: "+e);
           }
  
  
  
  1.10      +0 -1      xml-axis/java/test/functional/TestProxySample.java
  
  Index: TestProxySample.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/functional/TestProxySample.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- TestProxySample.java	19 Feb 2002 17:38:22 -0000	1.9
  +++ TestProxySample.java	19 Jun 2002 19:11:50 -0000	1.10
  @@ -103,7 +103,6 @@
               log.info("Test complete.");
           }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) ((AxisFault)e).dump();
               e.printStackTrace();
               throw new Exception("Fault returned from test: "+e);
           }
  
  
  
  1.17      +0 -1      xml-axis/java/test/functional/TestStockSample.java
  
  Index: TestStockSample.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/functional/TestStockSample.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- TestStockSample.java	19 Feb 2002 17:38:22 -0000	1.16
  +++ TestStockSample.java	19 Jun 2002 19:11:50 -0000	1.17
  @@ -132,7 +132,6 @@
               log.info("Test complete.");
           }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) ((AxisFault)e).dump();
               e.printStackTrace();
               throw new Exception("Fault returned from test: "+e);
           }
  
  
  
  1.26      +0 -2      xml-axis/java/test/functional/TestTCPTransportSample.java
  
  Index: TestTCPTransportSample.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/functional/TestTCPTransportSample.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- TestTCPTransportSample.java	11 Jun 2002 14:54:03 -0000	1.25
  +++ TestTCPTransportSample.java	19 Jun 2002 19:11:50 -0000	1.26
  @@ -132,7 +132,6 @@
   
           //    }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) ((AxisFault)e).dump();
               e.printStackTrace();
               throw new AssertionFailedError("Fault returned from TCP stock test: "+e);
           }
  @@ -162,7 +161,6 @@
               log.info("Test complete.");
           }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) ((AxisFault)e).dump();
               e.printStackTrace();
               throw new AssertionFailedError("Fault returned from test: "+e);
           }
  
  
  
  1.20      +0 -1      xml-axis/java/test/functional/TestTransportSample.java
  
  Index: TestTransportSample.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/functional/TestTransportSample.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- TestTransportSample.java	19 Feb 2002 17:38:22 -0000	1.19
  +++ TestTransportSample.java	19 Jun 2002 19:11:50 -0000	1.20
  @@ -116,7 +116,6 @@
               log.info("Test complete.");
           }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) ((AxisFault)e).dump();
               e.printStackTrace();
               throw new Exception("Fault returned from test: "+e);
           }
  
  
  
  1.105     +12 -3     xml-axis/java/test/wsdl/Wsdl2javaTestSuite.xml
  
  Index: Wsdl2javaTestSuite.xml
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/Wsdl2javaTestSuite.xml,v
  retrieving revision 1.104
  retrieving revision 1.105
  diff -u -r1.104 -r1.105
  --- Wsdl2javaTestSuite.xml	14 Jun 2002 22:39:50 -0000	1.104
  +++ Wsdl2javaTestSuite.xml	19 Jun 2002 19:11:50 -0000	1.105
  @@ -28,13 +28,13 @@
       <echo message="Classpath for wsdl2java task : ${test-classpath.property}"/>
       -->
       <echo message="Running WSDL2Java and Java2WSDL Emitters"/>
  -    
  +
       <!-- Omit Test -->
       <wsdl2java url="test/wsdl/omit/omit.wsdl"
                  output="build/work"
                  serverSide="yes">
       </wsdl2java>
  -    
  +
       <!-- WidgetPrice Java to WSDL Samples -->
       <java2wsdl output="build/work/samples/userguide/example6/WidgetPrice.wsdl"
                  className= "samples.userguide.example6.WidgetPrice"
  @@ -121,7 +121,7 @@
                  namespace="http://addrNoImplSEI.wsdl.test"
                  location="http://localhost:8080/axis/services/AddressBookNoImplSEI">
           <mapping namespace="urn:AddrNoImplSEI" package="test.wsdl.addrNoImplSEI"/>
  -    </java2wsdl> 
  +    </java2wsdl>
   
       <!-- Now run wsdl to java to make sure we don't have any strange artifacts -->
       <wsdl2java url="build/work/test/wsdl/addrNoImplSEI/AddressBook.wsdl"
  @@ -866,6 +866,15 @@
                  serverSide="yes"
                  testcase="yes">
           <mapping namespace="urn:qualifyTest" package="test.wsdl.qualify"/>
  +    </wsdl2java>
  +
  +    <!-- This tests element qualification.  -->
  +    <wsdl2java url="test/wsdl/ram/ram.wsdl"
  +               output="build/work"
  +               serverSide="yes"
  +               testcase="yes">
  +        <mapping namespace="urn:ram" package="test.wsdl.ram"/>
  +        <mapping namespace="http://ram.uspto.gov" package="test.wsdl.ram"/>
       </wsdl2java>
   
       <!-- The following WSDL are BAD.  We're keeping them here so we can -->
  
  
  
  1.2       +0 -1      xml-axis/java/test/wsdl/addrNoImplSEI/AddressBookTestCase.java
  
  Index: AddressBookTestCase.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/addrNoImplSEI/AddressBookTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AddressBookTestCase.java	21 May 2002 17:15:50 -0000	1.1
  +++ AddressBookTestCase.java	19 Jun 2002 19:11:50 -0000	1.2
  @@ -82,7 +82,6 @@
               log.info("Test complete.");
           }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) ((AxisFault)e).dump();
               e.printStackTrace();
               throw new Exception("Fault returned from test: "+e);
           }
  
  
  
  1.4       +1 -6      xml-axis/java/test/wsdl/addrNoImplSEI/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/addrNoImplSEI/Main.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Main.java	19 Jun 2002 13:24:25 -0000	1.3
  +++ Main.java	19 Jun 2002 19:11:50 -0000	1.4
  @@ -175,12 +175,7 @@
               }
           }
           catch (Exception e) {
  -            if (e instanceof AxisFault) {
  -                System.err.println(((AxisFault) e).dumpToString());
  -            }
  -            else {
  -                e.printStackTrace();
  -            }
  +            e.printStackTrace();
           }
       }
   }
  
  
  
  1.4       +0 -1      xml-axis/java/test/wsdl/multiref/MultiRefTestCase.java
  
  Index: MultiRefTestCase.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/multiref/MultiRefTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MultiRefTestCase.java	14 Jun 2002 18:48:40 -0000	1.3
  +++ MultiRefTestCase.java	19 Jun 2002 19:11:50 -0000	1.4
  @@ -84,7 +84,6 @@
               log.info("Test complete.");
           }
           catch( Exception e ) {
  -            if ( e instanceof AxisFault ) ((AxisFault)e).dump();
               e.printStackTrace();
               throw new Exception("Fault returned from test: "+e);
           }
  
  
  
  1.1                  xml-axis/java/test/wsdl/ram/RamServiceTestCase.java
  
  Index: RamServiceTestCase.java
  ===================================================================
  /**
   * RamServiceTestCase.java
   *
   * This file was auto-generated from WSDL
   * by the Apache Axis WSDL2Java emitter.
   */
  
  package test.wsdl.ram;
  
  public class RamServiceTestCase extends junit.framework.TestCase {
      public RamServiceTestCase(String name) {
          super(name);
      }
      public void test1RamValidate() {
          Ram binding;
          try {
              binding = new RamServiceLocator().getRam();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught:
" + jre);
          }
          assertTrue("binding is null", binding != null);
  
          try {
              RamData[] input = new RamData[1];
  
              input[0] = new RamData();
              input[0].setBankInfoPaymentType("BIPT");
              input[0].setBankInfoRequestType("BIRT");
              input[0].setCallingClientPortNumber("CCPN");
              input[0].setCallingClientUserIdentifier("CCUI");
  
              CreditCard cc = new CreditCard();
              cc.setName("NAME");
              cc.setNumber("NUMBER");
              cc.setExpires(new java.util.Date());
              cc.setPostalCode("PC");
              input[0].setCreditCard(cc);
  
              Fee[] fees = new Fee[1];
              fees[0] = new Fee();
              fees[0].setAmount(20.0);
              fees[0].setQuantity(50);
              fees[0].setCode("CODE");
              input[0].setFees(fees);
  
              input[0].setMailRoomDate(new java.util.Date());
              input[0].setSaleOtherPaymentTotalAmount(100.0);
              input[0].setSalePostingReferenceText("SPRT");
  
              Response[] output = binding.validate(input);
              System.out.println("Accounting Date:" + output[0].getAccountingDate());
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: " +
re);
          }
      }
  
      public static void main(String[] args){
          RamServiceTestCase test = new RamServiceTestCase("RamServiceTestCase");
          test.test1RamValidate();
      }
  }
  
  
  
  1.1                  xml-axis/java/test/wsdl/ram/RamSoapBindingImpl.java
  
  Index: RamSoapBindingImpl.java
  ===================================================================
  /**
   * RamSoapBindingImpl.java
   *
   * This file was auto-generated from WSDL
   * by the Apache Axis WSDL2Java emitter.
   */
  
  package test.wsdl.ram;
  
  public class RamSoapBindingImpl implements Ram{
      public Response[] validate(RamData[] in0) throws java.rmi.RemoteException {
          System.out.println("Date:" + in0[0].getCreditCard().getExpires());
          Response[] response = new Response[1];
          response[0] = new Response();
          response[0].setAccountingDate(new java.util.Date());
          response[0].setAuthorization("AUTH");
          response[0].setHostResponseCode("HRC");
          response[0].setHostResponseMessage("HRM");
          response[0].setProtoBaseResponseCode("PBRC");
          response[0].setProtoBaseResponseMessage("PBRM");
          response[0].setReasonCode("REASON");
          response[0].setReturnCode("RETURN");
          response[0].setSalePostingReferenceText("SPRT");
          response[0].setTransactionReferenceNumber("TRN");
          return response;
      }
  }
  
  
  
  1.1                  xml-axis/java/test/wsdl/ram/ram.wsdl
  
  Index: ram.wsdl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <wsdl:definitions targetNamespace="urn:ram" 
  xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:impl="urn:Ram-impl" 
  xmlns:intf="urn:ram" xmlns:tns1="http://ram.uspto.gov"
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <types>
    <schema targetNamespace="http://ram.uspto.gov" 
  xmlns="http://www.w3.org/2001/XMLSchema">
     <complexType name="RamData">
      <sequence>
       <element name="mailRoomDate" nillable="true" type="xsd:date"/>
       <element name="callingClientUserIdentifier" nillable="true" 
  type="xsd:string"/>
       <element name="bankInfoRequestType" nillable="true" type="xsd:string"/>
       <element name="callingClientPortNumber" nillable="true" type="xsd:string"/>
       <element name="salePostingReferenceText" nillable="true" 
  type="xsd:string"/>
       <element name="bankInfoPaymentType" nillable="true" type="xsd:string"/>
       <element name="saleOtherPaymentTotalAmount" type="xsd:double"/>
       <element name="fees" nillable="true" type="intf:ArrayOf_tns1_Fee"/>
       <element name="creditCard" nillable="true" type="tns1:CreditCard"/>
      </sequence>
     </complexType>
     <complexType name="Fee">
      <sequence>
       <element name="code" nillable="true" type="xsd:string"/>
       <element name="amount" type="xsd:double"/>
       <element name="quantity" type="xsd:int"/>
      </sequence>
     </complexType>
     <complexType name="CreditCard">
      <sequence>
       <element name="name" nillable="true" type="xsd:string"/>
       <element name="expires" nillable="true" type="xsd:date"/>
       <element name="number" nillable="true" type="xsd:string"/>
       <element name="postalCode" nillable="true" type="xsd:string"/>
      </sequence>
     </complexType>
     <complexType name="Response">
      <sequence>
       <element name="salePostingReferenceText" nillable="true" 
  type="xsd:string"/>
       <element name="authorization" nillable="true" type="xsd:string"/>
       <element name="hostResponseCode" nillable="true" type="xsd:string"/>
       <element name="hostResponseMessage" nillable="true" type="xsd:string"/>
       <element name="protoBaseResponseCode" nillable="true" type="xsd:string"/>
       <element name="protoBaseResponseMessage" nillable="true" 
  type="xsd:string"/>
       <element name="transactionReferenceNumber" nillable="true" 
  type="xsd:string"/>
       <element name="reasonCode" nillable="true" type="xsd:string"/>
       <element name="returnCode" nillable="true" type="xsd:string"/>
       <element name="accountingDate" nillable="true" type="xsd:date"/>
      </sequence>
     </complexType>
    </schema>
    <schema targetNamespace="urn:ram" xmlns="http://www.w3.org/2001/XMLSchema">
     <complexType name="ArrayOf_tns1_Fee">
      <complexContent>
       <restriction base="SOAP-ENC:Array">
        <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns1:Fee[]"/>
       </restriction>
      </complexContent>
     </complexType>
     <complexType name="ArrayOf_tns1_RamData">
      <complexContent>
       <restriction base="SOAP-ENC:Array">
        <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns1:RamData[]"/>
       </restriction>
      </complexContent>
     </complexType>
     <element name="ArrayOf_tns1_RamData" nillable="true" 
  type="intf:ArrayOf_tns1_RamData"/>
     <complexType name="ArrayOf_tns1_Response">
      <complexContent>
       <restriction base="SOAP-ENC:Array">
        <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns1:Response[]"/>
       </restriction>
      </complexContent>
     </complexType>
     <element name="ArrayOf_tns1_Response" nillable="true" 
  type="intf:ArrayOf_tns1_Response"/>
    </schema>
   </types>
  
     <wsdl:message name="validateResponse">
  
        <wsdl:part name="return" type="intf:ArrayOf_tns1_Response"/>
  
     </wsdl:message>
  
     <wsdl:message name="validateRequest">
  
        <wsdl:part name="in0" type="intf:ArrayOf_tns1_RamData"/>
  
     </wsdl:message>
  
     <wsdl:portType name="Ram">
  
        <wsdl:operation name="validate" parameterOrder="in0">
  
           <wsdl:input message="intf:validateRequest"/>
  
           <wsdl:output message="intf:validateResponse"/>
  
        </wsdl:operation>
  
     </wsdl:portType>
  
     <wsdl:binding name="RamSoapBinding" type="intf:Ram">
  
        <wsdlsoap:binding style="rpc" 
  transport="http://schemas.xmlsoap.org/soap/http"/>
  
        <wsdl:operation name="validate">
  
           <wsdlsoap:operation soapAction=""/>
  
           <wsdl:input>
  
              <wsdlsoap:body 
  encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="validate" 
  use="encoded"/>
  
           </wsdl:input>
  
           <wsdl:output>
  
              <wsdlsoap:body 
  encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ram" 
  use="encoded"/>
  
           </wsdl:output>
  
        </wsdl:operation>
  
     </wsdl:binding>
  
     <wsdl:service name="RamService">
  
        <wsdl:port binding="intf:RamSoapBinding" name="Ram">
  
           <wsdlsoap:address location="http://localhost:8080/axis/services/Ram"/>
  
        </wsdl:port>
  
     </wsdl:service>
  
  </wsdl:definitions>
  
  

Mime
View raw message