axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bu...@apache.org
Subject cvs commit: xml-axis/java/test/wsdl/types ComprehensiveTypes.wsdl VerifyTestCase.java
Date Wed, 23 Jan 2002 20:57:42 GMT
butek       02/01/23 12:57:42

  Modified:    java/test/wsdl/types ComprehensiveTypes.wsdl
                        VerifyTestCase.java
  Log:
  Added a simple type inheritance test.  (this probably should be an elaborate test in
  it's own right, but until then, at least this is here)
  
  Revision  Changes    Path
  1.11      +142 -0    xml-axis/java/test/wsdl/types/ComprehensiveTypes.wsdl
  
  Index: ComprehensiveTypes.wsdl
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/types/ComprehensiveTypes.wsdl,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ComprehensiveTypes.wsdl	17 Jan 2002 16:18:28 -0000	1.10
  +++ ComprehensiveTypes.wsdl	23 Jan 2002 20:57:42 -0000	1.11
  @@ -111,6 +111,26 @@
           </xsd:complexContent>
         </xsd:complexType>
   
  +
  +      <!-- The following is a simple test of inheritance with types -->
  +      <xsd:complexType name="Animal">
  +        <xsd:all>
  +          <xsd:element name="Name" nillable="true" type="xsd:string"/>
  +        </xsd:all>
  +      </xsd:complexType>
  +      <xsd:element name="Animal" nillable="true" type="typens:Animal"/>
  +      <xsd:complexType name="Cat">
  +        <xsd:complexContent>
  +          <xsd:extension base="typens:Animal">
  +            <xsd:all>
  +              <xsd:element name="Purr" nillable="true" type="xsd:string"/>
  +            </xsd:all>
  +          </xsd:extension>
  +        </xsd:complexContent>
  +      </xsd:complexType>
  +      <xsd:element name="Cat" nillable="true" type="typens:Cat"/>
  +
  +
         <!-- The following test all of the valid enum basic types -->
         <xsd:simpleType name="enumString">
           <xsd:restriction base="xsd:string">
  @@ -255,6 +275,14 @@
       <part name="any" type="xsd:anyType"/>
     </message>
   
  +  <message name="animal">
  +    <part name="animal" type="typens:Animal"/>
  +  </message>
  +
  +  <message name="cat">
  +    <part name="cat" type="typens:Cat"/>
  +  </message>
  +
     <!-- port type declns -->
     <portType name="TypeTest">
       <operation name="allPrimitivesIn">
  @@ -367,6 +395,30 @@
         <input message="tns:empty"/>
         <output message="tns:any"/>
       </operation>
  +    <operation name="animalIn">
  +      <input message="tns:animal"/>
  +      <output message="tns:empty"/>
  +    </operation>
  +    <operation name="animalInout">
  +      <input message="tns:animal"/>
  +      <output message="tns:animal"/>
  +    </operation>
  +    <operation name="animalOut">
  +      <input message="tns:empty"/>
  +      <output message="tns:animal"/>
  +    </operation>
  +    <operation name="catIn">
  +      <input message="tns:cat"/>
  +      <output message="tns:empty"/>
  +    </operation>
  +    <operation name="catInout">
  +      <input message="tns:cat"/>
  +      <output message="tns:cat"/>
  +    </operation>
  +    <operation name="catOut">
  +      <input message="tns:empty"/>
  +      <output message="tns:cat"/>
  +    </operation>
     </portType>
   
     <!-- binding declns -->
  @@ -767,6 +819,96 @@
         </output>
       </operation>
       <operation name="anyOut">
  +      <soap:operation soapAction=""/>
  +      <input>
  +        <soap:body
  +            use="encoded"
  +            namespace=""
  +            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  +      </input>
  +      <output>
  +        <soap:body
  +            use="encoded"
  +            namespace=""
  +            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  +      </output>
  +    </operation>
  +    <operation name="animalIn">
  +      <soap:operation soapAction=""/>
  +      <input>
  +        <soap:body
  +            use="encoded"
  +            namespace=""
  +            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  +      </input>
  +      <output>
  +        <soap:body
  +            use="encoded"
  +            namespace=""
  +            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  +      </output>
  +    </operation>
  +    <operation name="animalInout">
  +      <soap:operation soapAction=""/>
  +      <input>
  +        <soap:body
  +            use="encoded"
  +            namespace=""
  +            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  +      </input>
  +      <output>
  +        <soap:body
  +            use="encoded"
  +            namespace=""
  +            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  +      </output>
  +    </operation>
  +    <operation name="animalOut">
  +      <soap:operation soapAction=""/>
  +      <input>
  +        <soap:body
  +            use="encoded"
  +            namespace=""
  +            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  +      </input>
  +      <output>
  +        <soap:body
  +            use="encoded"
  +            namespace=""
  +            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  +      </output>
  +    </operation>
  +    <operation name="catIn">
  +      <soap:operation soapAction=""/>
  +      <input>
  +        <soap:body
  +            use="encoded"
  +            namespace=""
  +            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  +      </input>
  +      <output>
  +        <soap:body
  +            use="encoded"
  +            namespace=""
  +            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  +      </output>
  +    </operation>
  +    <operation name="catInout">
  +      <soap:operation soapAction=""/>
  +      <input>
  +        <soap:body
  +            use="encoded"
  +            namespace=""
  +            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  +      </input>
  +      <output>
  +        <soap:body
  +            use="encoded"
  +            namespace=""
  +            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  +      </output>
  +    </operation>
  +    <operation name="catOut">
         <soap:operation soapAction=""/>
         <input>
           <soap:body
  
  
  
  1.3       +37 -0     xml-axis/java/test/wsdl/types/VerifyTestCase.java
  
  Index: VerifyTestCase.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/types/VerifyTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- VerifyTestCase.java	17 Jan 2002 16:18:28 -0000	1.2
  +++ VerifyTestCase.java	23 Jan 2002 20:57:42 -0000	1.3
  @@ -29,8 +29,12 @@
   
   import javax.xml.rpc.namespace.QName;
   
  +import test.wsdl.types.comprehensive_types.Animal;
  +import test.wsdl.types.comprehensive_types.AnimalHolder;
   import test.wsdl.types.comprehensive_types.ArrayHolder;
   import test.wsdl.types.comprehensive_types.ArrayMHolder;
  +import test.wsdl.types.comprehensive_types.Cat;
  +import test.wsdl.types.comprehensive_types.CatHolder;
   import test.wsdl.types.comprehensive_types.ComplexAll;
   import test.wsdl.types.comprehensive_types.ComplexAllHolder;
   import test.wsdl.types.comprehensive_types.ComplexSequence;
  @@ -260,6 +264,39 @@
           }
           try {
               java.lang.Object value = binding.anyOut();
  +        } catch (java.rmi.RemoteException re) {
  +            throw new junit.framework.AssertionFailedError("Remote Exception caught: "
+ re );
  +        }
  +        Cat cat = new Cat("meow");
  +        try {
  +            binding.animalIn(cat);
  +        } catch (java.rmi.RemoteException re) {
  +            throw new junit.framework.AssertionFailedError("Remote Exception caught: "
+ re );
  +        }
  +        try {
  +            binding.animalInout(new AnimalHolder(cat));
  +        } catch (java.rmi.RemoteException re) {
  +            throw new junit.framework.AssertionFailedError("Remote Exception caught: "
+ re );
  +        }
  +        try {
  +            Animal value = null;
  +            value = binding.animalOut();
  +        } catch (java.rmi.RemoteException re) {
  +            throw new junit.framework.AssertionFailedError("Remote Exception caught: "
+ re );
  +        }
  +        try {
  +            binding.catIn(cat);
  +        } catch (java.rmi.RemoteException re) {
  +            throw new junit.framework.AssertionFailedError("Remote Exception caught: "
+ re );
  +        }
  +        try {
  +            binding.catInout(new CatHolder(cat));
  +        } catch (java.rmi.RemoteException re) {
  +            throw new junit.framework.AssertionFailedError("Remote Exception caught: "
+ re );
  +        }
  +        try {
  +            Cat value = null;
  +            value = binding.catOut();
           } catch (java.rmi.RemoteException re) {
               throw new junit.framework.AssertionFailedError("Remote Exception caught: "
+ re );
           }
  
  
  

Mime
View raw message