summaryrefslogtreecommitdiff
path: root/test/wsdl/ref/product.wsdl
blob: 993fe217aae5b622a7370d734ae6f23813630cb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0"?>
<definitions name="product"
    targetNamespace="urn:product"
    xmlns:tns="urn:product"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
  <types>
    <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
        targetNamespace="urn:product">
      <simpleType name="non-empty-string">
        <restriction base="xsd:string">
          <minLength value="1"/>
        </restriction>
      </simpleType>

      <complexType name="Product">
        <all>
          <element name="name" type="xsd:string"/>
          <element ref="tns:Rating"/>
        </all>
      </complexType>

      <complexType name="Comment">
        <simpleContent>
          <extension base="xsd:string">
            <attribute name="msgid" type="xsd:string" use="required"/>
          </extension>
        </simpleContent>
      </complexType>

      <attribute name="version" type="tns:non-empty-string"/>

      <attribute default="Y" name="yesno">
        <simpleType>
          <restriction base="xsd:string">
            <enumeration value="Y"/>
            <enumeration value="N"/>
          </restriction>
        </simpleType>
      </attribute>

      <element name="Rating">
        <simpleType>
          <restriction base="xsd:string">
            <enumeration value="+1"/>
            <enumeration value="0"/>
            <enumeration value="-1"/>
          </restriction>
        </simpleType>
      </element>

      <element name="Product-Bag">
        <complexType>
          <sequence>
            <element name="bag" type="tns:Product" minOccurs="0" maxOccurs="unbounded"/>
            <element ref="tns:Rating" minOccurs="0" maxOccurs="unbounded"/>
            <element ref="tns:Product-Bag"/>
            <element name="comment_1" minOccurs="0" maxOccurs="unbounded">
              <complexType>
                <simpleContent>
                  <extension base="xsd:string">
                    <attribute name="msgid" type="xsd:string" use="required"/>
                  </extension>
                </simpleContent>
              </complexType>
            </element>
            <element name="comment-2" type="tns:Comment" minOccurs="0" maxOccurs="unbounded"/>
          </sequence>
          <attribute ref="tns:version"/>
          <attribute ref="tns:yesno"/>
        </complexType>
      </element>

      <element name="Creator" minOccurs="0" maxOccurs="unbounded">
        <complexType>
          <simpleContent>
            <extension base="xsd:string">
              <attribute name="Role" type="xs:string" use="required"/>
            </extension>
          </simpleContent>
        </complexType>
      </element>
    </xsd:schema>
  </types>
</definitions>