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

root/trunk/test/wsdl/group/group.wsdl

Revision 1917, 2.8 kB (checked in by nahi, 1 year ago)
  • added support for attributeGroup.
Line 
1 <?xml version="1.0" encoding="utf-8"?>
2 <definitions
3     name="echo"
4     targetNamespace="urn:group"
5     xmlns:tns="urn:group"
6     xmlns:txd="urn:grouptype"
7     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
8     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
9     xmlns="http://schemas.xmlsoap.org/wsdl/">
10     <types>
11       <xsd:schema elementFormDefault="unqualified" targetNamespace="urn:grouptype">
12
13         <xsd:element name="comment" type="xsd:string"/>
14
15         <xsd:simpleType name="attr_type">
16           <xsd:restriction base="xsd:decimal">
17             <xsd:maxInclusive value="-50"/>
18             <xsd:minInclusive value="50"/>
19           </xsd:restriction>
20         </xsd:simpleType>
21
22         <xsd:group name="common">
23           <xsd:sequence>
24             <xsd:element ref="txd:comment" minOccurs="0"/>
25             <xsd:any namespace="##any" minOccurs="0"/>
26           </xsd:sequence>
27         </xsd:group>
28
29         <xsd:attributeGroup name="common_attr">
30           <xsd:attribute name="attr_min" type="txd:attr_type" default="0"/>
31           <xsd:attribute name="attr_max" type="txd:attr_type" default="0"/>
32         </xsd:attributeGroup>
33
34         <xsd:group name="common_element">
35           <xsd:sequence>
36             <xsd:group ref="txd:common"/>
37             <xsd:choice>
38               <xsd:element name="element" type="xsd:string"/>
39               <xsd:element name="eletype" type="xsd:string"/>
40             </xsd:choice>
41           </xsd:sequence>
42         </xsd:group>
43
44         <xsd:complexType name="groupele_type">
45           <xsd:sequence>
46             <xsd:group ref="txd:common_element"/>
47             <xsd:element name="var" type="xsd:string"/>
48           </xsd:sequence>
49           <xsd:attributeGroup ref="txd:common_attr"/>
50         </xsd:complexType>
51
52         <xsd:element name="groupele" type="txd:groupele_type"/>
53       </xsd:schema>
54     </types>
55
56   <message name="echo_in">
57     <part name="parameters" element="txd:groupele" />
58   </message>
59   <message name="echo_out">
60     <part name="parameters" element="txd:groupele" />
61   </message>
62
63   <portType name="group_porttype">
64     <operation name="echo">
65       <input message="tns:echo_in" />
66       <output message="tns:echo_out" />
67     </operation>
68   </portType>
69
70   <binding name="group_binding" type="tns:group_porttype">
71     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
72     <operation name="echo">
73       <soap:operation soapAction="urn:group:echo" style="document" />
74       <input>
75         <soap:body use="literal" />
76       </input>
77       <output>
78         <soap:body use="literal" />
79       </output>
80     </operation>
81   </binding>
82
83   <service name="group_service">
84     <port name="docprc_service_port" binding="tns:group_binding">
85       <soap:address location="http://localhost:17171/" />
86     </port>
87   </service>
88 </definitions>
Note: See TracBrowser for help on using the browser.