You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sc...@apache.org on 2002/06/19 15:24:26 UTC

cvs commit: xml-axis/java/test/wsdl/addrNoImplSEI AddressBook.wsdl Main.java

scheu       2002/06/19 06:24:25

  Modified:    java/test/wsdl/addrNoImplSEI AddressBook.wsdl Main.java
  Log:
  Slightly changed the addrNoImplSEI testcase so that the
  phone complexType is an anonymous type.  This was done to
  verify the processing of anonymous types for bugzilla bug 8598.
  
  Revision  Changes    Path
  1.3       +10 -8     xml-axis/java/test/wsdl/addrNoImplSEI/AddressBook.wsdl
  
  Index: AddressBook.wsdl
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/addrNoImplSEI/AddressBook.wsdl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AddressBook.wsdl	14 Jun 2002 22:39:50 -0000	1.2
  +++ AddressBook.wsdl	19 Jun 2002 13:24:25 -0000	1.3
  @@ -21,13 +21,15 @@
           </xsd:restriction>
         </xsd:simpleType>
   
  -      <xsd:complexType name="phone">
  -        <xsd:all>
  -            <xsd:element name="areaCode" type="xsd:int"/>
  -            <xsd:element name="exchange" type="xsd:string"/>
  -            <xsd:element name="number" type="xsd:string"/>
  -        </xsd:all>
  -      </xsd:complexType>
  +      <xsd:element name="phone">
  +        <xsd:complexType>
  +          <xsd:all>
  +              <xsd:element name="areaCode" type="xsd:int"/>
  +              <xsd:element name="exchange" type="xsd:string"/>
  +              <xsd:element name="number" type="xsd:string"/>
  +          </xsd:all>
  +        </xsd:complexType>
  +      </xsd:element>
   
         <xsd:complexType name="address">
           <xsd:all>
  @@ -36,7 +38,7 @@
               <xsd:element name="city" type="xsd:string"/>
               <xsd:element name="state" type="typens:stateType"/>
               <xsd:element name="zip" type="xsd:int"/>
  -            <xsd:element name="phoneNumber" type="typens:phone"/>
  +            <xsd:element ref="typens:phone"/>
           </xsd:all>
         </xsd:complexType>
       </xsd:schema>
  
  
  
  1.3       +2 -2      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Main.java	14 Jun 2002 22:39:50 -0000	1.2
  +++ Main.java	19 Jun 2002 13:24:25 -0000	1.3
  @@ -89,7 +89,7 @@
           phone1.setAreaCode(765);
           phone1.setExchange("494");
           phone1.setNumber("4900");
  -        addr1.setPhoneNumber(phone1);
  +        addr1.setPhone(phone1);
           
       }
       private static void printAddress (Address ad) {
  @@ -101,7 +101,7 @@
                                   ad.getStreetName());
           System.err.println ("\t" + ad.getCity() + ", " + ad.getState() + " " +
                                   ad.getZip());
  -        Phone ph = ad.getPhoneNumber();
  +        Phone ph = ad.getPhone();
           System.err.println ("\tPhone: (" + ph.getAreaCode() + ") " +
                                   ph.getExchange() + "-" + ph.getNumber());
       }