Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

root/trunk/test/wsdl/ref/product.wsdl

Revision 1699, 4.5 kB (checked in by nahi, 2 years ago)

classDefCreator crash for a WSDL containing a complexType that extends another complexType which is itself an extension of simpleContent. fixes #231.

Line 
1 <?xml version="1.0"?>
2 <definitions name="product"
3     targetNamespace="urn:ref"
4     xmlns:tns="urn:ref"
5     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
6     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
7     xmlns="http://schemas.xmlsoap.org/wsdl/">
8   <types>
9     <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
10         targetNamespace="urn:ref">
11       <simpleType name="non-empty-string">
12         <restriction base="xsd:string">
13           <minLength value="1"/>
14         </restriction>
15       </simpleType>
16
17       <complexType name="Product">
18         <all>
19           <element name="name" type="xsd:string"/>
20           <element ref="tns:Rating"/>
21         </all>
22       </complexType>
23
24       <complexType name="Comment">
25         <simpleContent>
26           <extension base="xsd:string">
27             <attribute name="msgid" type="xsd:string" use="required"/>
28           </extension>
29         </simpleContent>
30       </complexType>
31
32       <complexType name="_point">
33         <simpleContent>
34           <extension base="xsd:integer">
35             <attribute name="unit" type="xsd:string" use="required"/>
36           </extension>
37         </simpleContent>
38       </complexType>
39
40       <attribute name="version" type="tns:non-empty-string"/>
41
42       <attribute default="Y" name="yesno">
43         <simpleType>
44           <restriction base="xsd:string">
45             <enumeration value="Y"/>
46             <enumeration value="N"/>
47           </restriction>
48         </simpleType>
49       </attribute>
50
51       <element name="Rating">
52         <simpleType>
53           <restriction base="xsd:string">
54             <enumeration value="+1"/>
55             <enumeration value="0"/>
56             <enumeration value="-1"/>
57           </restriction>
58         </simpleType>
59       </element>
60
61       <element name="Product-Bag">
62         <complexType>
63           <sequence>
64             <element name="bag" type="tns:Product" minOccurs="0" maxOccurs="unbounded"/>
65             <element ref="tns:Rating" minOccurs="0" maxOccurs="unbounded"/>
66             <element name="Comment_1" minOccurs="0" maxOccurs="unbounded">
67               <complexType>
68                 <simpleContent>
69                   <extension base="xsd:string">
70                     <attribute name="msgid" type="xsd:string" use="required"/>
71                   </extension>
72                 </simpleContent>
73               </complexType>
74             </element>
75             <element name="comment-2" type="tns:Comment" minOccurs="0" maxOccurs="unbounded"/>
76             <element name="__point" type="tns:_point" minOccurs="0" maxOccurs="1"/>
77           </sequence>
78           <attribute ref="tns:version"/>
79           <attribute ref="tns:yesno"/>
80         </complexType>
81       </element>
82
83       <element name="Creator">
84         <complexType>
85           <simpleContent>
86             <extension base="xsd:string">
87               <attribute name="Role" type="xsd:string" use="required"/>
88             </extension>
89           </simpleContent>
90         </complexType>
91       </element>
92
93       <complexType name="Document">
94         <simpleContent>
95           <extension base="string">
96             <attribute name="ID" type="xsd:string"/>
97           </extension>
98         </simpleContent>
99       </complexType>
100
101       <complexType name="DerivedChoice_BaseSimpleContent">
102         <complexContent mixed="false">
103           <extension base="tns:Document">
104             <choice>
105               <element name="varStringExt" type="xsd:string"/>
106               <element name="varFloatExt" type="xsd:float"/>
107             </choice>
108             <attribute name="attrStringExt" type="xsd:string"/>
109           </extension>
110         </complexContent>
111       </complexType>
112     </xsd:schema>
113   </types>
114
115   <message name="echo_in">
116     <part name="parameters" element="tns:Product-Bag" />
117   </message>
118   <message name="echo_out">
119     <part name="parameters" element="tns:Creator" />
120   </message>
121
122   <portType name="ref_porttype">
123     <operation name="echo">
124       <input message="tns:echo_in" />
125       <output message="tns:echo_out" />
126     </operation>
127   </portType>
128
129   <binding name="ref_binding" type="tns:ref_porttype">
130     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
131     <operation name="echo">
132       <soap:operation soapAction="urn:ref:echo" style="document" />
133       <input>
134         <soap:body use="literal" />
135       </input>
136       <output>
137         <soap:body use="literal" />
138       </output>
139     </operation>
140   </binding>
141
142   <service name="ref_service">
143     <port name="ref_service_port" binding="tns:ref_binding">
144       <soap:address location="http://localhost:17171/" />
145     </port>
146   </service>
147 </definitions>
Note: See TracBrowser for help on using the browser.