| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xsd:schema targetNamespace="http://www.test.org/sample_types" |
| 3 |
xmlns:tns="http://www.test.org/sample_types" |
| 4 |
xmlns:soap-enc="http://www.w3.org/2001/09/soap-encoding" |
| 5 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
| 6 |
|
| 7 |
<!-- |
| 8 |
These will cause errors in generation but are necessary for an XML schema validator |
| 9 |
like IBM Schema Quality Checker |
| 10 |
|
| 11 |
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" |
| 12 |
schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/> |
| 13 |
<xsd:import namespace="http://www.w3.org/2001/09/soap-encoding" |
| 14 |
schemaLocation="http://www.w3.org/2001/09/soap-encoding"/> |
| 15 |
--> |
| 16 |
|
| 17 |
<xsd:simpleType name="StringPatternType"> |
| 18 |
<xsd:restriction base="xsd:string"> |
| 19 |
<xsd:pattern value="[A-Z]*"/> |
| 20 |
</xsd:restriction> |
| 21 |
</xsd:simpleType> |
| 22 |
|
| 23 |
<xsd:group name="StringIntGroup"> |
| 24 |
<xsd:sequence> |
| 25 |
<xsd:element name="stringMember" type="xsd:string"/> |
| 26 |
<xsd:element name="intMember" type="xsd:int"/> |
| 27 |
</xsd:sequence> |
| 28 |
</xsd:group> |
| 29 |
|
| 30 |
<xsd:complexType name="ArrayOfString"> |
| 31 |
<xsd:complexContent> |
| 32 |
<xsd:restriction base="soap-enc:Array"> |
| 33 |
<xsd:sequence> |
| 34 |
<xsd:element name="stringElement" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> |
| 35 |
</xsd:sequence> |
| 36 |
<xsd:attributeGroup ref="soap-enc:arrayAttributes"/> |
| 37 |
<xsd:attributeGroup ref="soap-enc:commonAttributes"/> |
| 38 |
</xsd:restriction> |
| 39 |
</xsd:complexContent> |
| 40 |
</xsd:complexType> |
| 41 |
|
| 42 |
<xsd:complexType name="ExtensibilityType"> |
| 43 |
<xsd:sequence> |
| 44 |
<xsd:any namespace="##any" minOccurs="0"/> |
| 45 |
</xsd:sequence> |
| 46 |
</xsd:complexType> |
| 47 |
|
| 48 |
|
| 49 |
<xsd:complexType name="SampleType"> |
| 50 |
<xsd:sequence> |
| 51 |
<xsd:group ref="tns:StringIntGroup"/> |
| 52 |
<xsd:element name="pattern" type="tns:StringPatternType"/> |
| 53 |
<!-- Will cause error already in generation --> |
| 54 |
<xsd:element name="uri" type="xsd:anyURI"/> |
| 55 |
<xsd:element name="strings" type="tns:ArrayOfString"/> |
| 56 |
<xsd:element name="extension" type="tns:ExtensibilityType"/> |
| 57 |
</xsd:sequence> |
| 58 |
</xsd:complexType> |
| 59 |
|
| 60 |
</xsd:schema> |