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

root/trunk/test/wsdl/list/list.wsdl

Revision 1660, 2.9 kB (checked in by nahi, 3 years ago)

added support of <list> of <simpleType>. closes #3.

Line 
1 <?xml version="1.0" encoding="utf-8"?>
2 <definitions
3     name="list"
4     targetNamespace="urn:list"
5     xmlns:tns="urn:list"
6     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
7     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
8     xmlns="http://schemas.xmlsoap.org/wsdl/">
9   <types>
10     <xsd:schema elementFormDefault="unqualified" targetNamespace="urn:list">
11       <xsd:simpleType name="langlistinline">
12         <xsd:list>
13           <xsd:simpleType>
14             <xsd:restriction base="xsd:string">
15               <xsd:enumeration value="inlineruby" />
16               <xsd:enumeration value="inlineperl" />
17               <xsd:enumeration value="inlinepython" />
18               <xsd:enumeration value="inlinesmalltalk" />
19             </xsd:restriction>
20           </xsd:simpleType>
21         </xsd:list>
22       </xsd:simpleType>
23
24       <xsd:simpleType name="language">
25         <xsd:restriction base="xsd:string">
26           <xsd:enumeration value="ruby" />
27           <xsd:enumeration value="perl" />
28           <xsd:enumeration value="python" />
29           <xsd:enumeration value="smalltalk" />
30         </xsd:restriction>
31       </xsd:simpleType>
32
33       <xsd:simpleType name="langlist">
34         <xsd:list itemType="tns:language"/>
35       </xsd:simpleType>
36
37       <xsd:element name="echoele">
38         <xsd:complexType>
39           <xsd:sequence>
40             <xsd:element minOccurs="0" maxOccurs="1" name="e1"
41               type="tns:langlistinline" />
42             <xsd:element minOccurs="0" maxOccurs="1" name="e2"
43               type="tns:langlist" />
44           </xsd:sequence>
45         </xsd:complexType>
46       </xsd:element>
47
48       <xsd:element name="echo_response">
49         <xsd:complexType>
50           <xsd:sequence>
51             <xsd:element minOccurs="0" maxOccurs="1" name="e1"
52               type="tns:langlistinline" />
53             <xsd:element minOccurs="0" maxOccurs="1" name="e2"
54               type="tns:langlist" />
55           </xsd:sequence>
56         </xsd:complexType>
57       </xsd:element>
58     </xsd:schema>
59   </types>
60
61   <message name="echo_in">
62     <part name="parameters" element="tns:echoele" />
63   </message>
64   <message name="echo_out">
65     <part name="parameters" element="tns:echo_response" />
66   </message>
67
68   <portType name="list_porttype">
69     <operation name="echo">
70       <input message="tns:echo_in" />
71       <output message="tns:echo_out" />
72     </operation>
73   </portType>
74
75   <binding name="list_binding" type="tns:list_porttype">
76     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
77     <operation name="echo">
78       <soap:operation soapAction="urn:list:echo" style="document" />
79       <input>
80         <soap:body use="literal" />
81       </input>
82       <output>
83         <soap:body use="literal" />
84       </output>
85     </operation>
86   </binding>
87
88   <service name="list_service">
89     <port name="list_service_port" binding="tns:list_binding">
90       <soap:address location="http://localhost:17171/" />
91     </port>
92   </service>
93 </definitions>
Note: See TracBrowser for help on using the browser.