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/doesntWork sample_types.xsd sample_interface.wsdl
Date Thu, 13 Dec 2001 19:24:00 GMT
butek       01/12/13 11:24:00

  Added:       java/test/doesntWork sample_types.xsd sample_interface.wsdl
  Log:
  Added a test of legal XML types that don't work yet with WSDL2Java:
  - xsd:any
  - xsd:group
  - simpleTypes other than enumerations
  
  contributed by Thomas Sandholm (sandholm@mcs.anl.gov).
  
  Revision  Changes    Path
  1.1                  xml-axis/java/test/doesntWork/sample_types.xsd
  
  Index: sample_types.xsd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <xsd:schema targetNamespace="http://www.test.org/sample_types"
              xmlns:tns="http://www.test.org/sample_types"
              xmlns:soap-enc="http://www.w3.org/2001/09/soap-encoding"
  	    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    
    <!-- 
      These will cause errors in generation but are necessary for an XML schema validator
      like IBM Schema Quality Checker 
  
      <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"
                  schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
      <xsd:import namespace="http://www.w3.org/2001/09/soap-encoding"
                  schemaLocation="http://www.w3.org/2001/09/soap-encoding"/>
    -->
  
    <xsd:simpleType name="StringPatternType">
     <xsd:restriction base="xsd:string">
       <xsd:pattern value="[A-Z]*"/>
     </xsd:restriction>
    </xsd:simpleType>
  
    <xsd:group name="StringIntGroup">
      <xsd:sequence>
        <xsd:element name="stringMember" type="xsd:string"/>
        <xsd:element name="intMember" type="xsd:int"/>
      </xsd:sequence>
    </xsd:group>
    
    <xsd:complexType name="ArrayOfString">
      <xsd:complexContent>
        <xsd:restriction base="soap-enc:Array">
          <xsd:sequence>
            <xsd:element name="stringElement" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
          <xsd:attributeGroup ref="soap-enc:arrayAttributes"/>
          <xsd:attributeGroup ref="soap-enc:commonAttributes"/>
        </xsd:restriction>
      </xsd:complexContent>
    </xsd:complexType> 
  
    <xsd:complexType name="ExtensibilityType">
        <xsd:sequence>
            <xsd:any namespace="##any" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
  
  
    <xsd:complexType name="SampleType">
      <xsd:sequence>
        <xsd:group ref="tns:StringIntGroup"/>
        <xsd:element name="pattern" type="tns:StringPatternType"/>
        <!-- Will cause error already in generation --> 
        <xsd:element name="uri" type="xsd:anyURI"/> 
        <xsd:element name="strings" type="tns:ArrayOfString"/>
        <xsd:element name="extension" type="tns:ExtensibilityType"/>
      </xsd:sequence>
    </xsd:complexType>
  
  </xsd:schema>
  
  
  
  1.1                  xml-axis/java/test/doesntWork/sample_interface.wsdl
  
  Index: sample_interface.wsdl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <definitions name="SampleServiceDefinition"
               targetNamespace="http://www.test.org/sample_interface"
               xmlns="http://schemas.xmlsoap.org/wsdl/"
               xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
               xmlns:tns="http://www.test.org/sample_interface"
               xmlns:sample-types="http://www.test.org/sample_types"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  
  <import location="sample_types.xsd"
          namespace="http://www.test.org/sample_types"/>
  
  <message name="sampleOpRequest">
    <part name="sampleOpParameters" type="sample-types:SampleType"/>
  </message>
  <message name="sampleOpResponse"/>
  
  <portType name="SamplePortType">
    <operation name="sampleOp">
      <input message="tns:sampleOpRequest"/>
      <output message="tns:sampleOpResponse"/>
    </operation>
  </portType>
  
  <binding name="SampleSOAPBinding" type="tns:SamplePortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="sampleOp">
      <soap:operation soapAction="http://www.test.org/sample#sampleOp"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
  </binding>
  
  </definitions>
  
  
  

Mime
View raw message