axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject cvs commit: xml-axis/java/test/arrays ArrayTest.wsdl Main.java
Date Mon, 12 Nov 2001 20:53:03 GMT
scheu       01/11/12 12:53:03

  Modified:    java/test/arrays ArrayTest.wsdl Main.java
  Log:
  Added a test of soapenc:base64 to the arrays test.
  
  Revision  Changes    Path
  1.3       +3 -0      xml-axis/java/test/arrays/ArrayTest.wsdl
  
  Index: ArrayTest.wsdl
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/arrays/ArrayTest.wsdl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ArrayTest.wsdl	2001/11/12 20:38:51	1.2
  +++ ArrayTest.wsdl	2001/11/12 20:53:03	1.3
  @@ -42,6 +42,9 @@
               <xsd:element name="hobbies" type="typens:hobbyArray"/>
               <!-- Style 3: Array defined using derivation of soapenc:Array -->
               <xsd:element name="pets" type="typens:petArray"/>
  +            <!-- Array of bytes -->                                           
  +            <xsd:element name="nickName" type="soapenc:base64"/>
  +
           </xsd:sequence>
         </xsd:complexType>
       </xsd:schema>
  
  
  
  1.3       +7 -1      xml-axis/java/test/arrays/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/arrays/Main.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Main.java	2001/11/12 20:38:51	1.2
  +++ Main.java	2001/11/12 20:53:03	1.3
  @@ -75,7 +75,8 @@
       static String[] movies = new String[] { "Star Trek", "A.I." };
       static String[] hobbies= new String[] { "programming", "reading about programming"
};
       static String[] pets   = new String[] { "Byte", "Nibbles" };
  -    static PersonalInfo pi = new PersonalInfo(name,movies,hobbies,pets);
  +    static byte[]   nickName = new byte[] { 'g', 'e', 'e', 'k' };
  +    static PersonalInfo pi = new PersonalInfo(name,movies,hobbies,pets,nickName);
       
       private static void printPersonalInfo (PersonalInfo pi) {
           if (pi == null) {
  @@ -97,6 +98,11 @@
           for(int i=0; i<pets.length; i++)
               System.err.println("\t\t" + (String) pets[i]);
   
  +        byte[] nb =pi.getNickName();
  +        System.err.print ("\tNickName=");
  +        for(int i=0; i<nb.length; i++)
  +            System.err.print(nb[i]);
  +        System.err.println("");
       }
       
       private static Object doit (PersonalInfoBook pib) throws Exception {
  
  
  

Mime
View raw message