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

root/trunk/test/wsdl/rpc/rpc.wsdl

Revision 1775, 3.2 kB (checked in by nahi, 2 years ago)
  • encode/decode basetype according to type definition in rpc/encoded service. closes #98, #328.
Line 
1 <?xml version="1.0" encoding="utf-8"?>
2 <definitions name="echo"
3     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
4     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5     xmlns:tns="urn:rpc"
6     xmlns:txd="urn:rpc-type"
7     targetNamespace="urn:rpc"
8     xmlns="http://schemas.xmlsoap.org/wsdl/">
9   <types>
10     <xsd:schema targetNamespace="urn:rpc-type">
11       <xsd:complexType name="person">
12         <xsd:all>
13           <xsd:element name="family-name" type="xsd:string" />
14           <xsd:element name="Given_name" type="xsd:string" />
15           <xsd:element name="age" type="xsd:long" />
16           <xsd:element name="gender" type="txd:gender" />
17           <xsd:element name="link" type="txd:person" />
18         </xsd:all>
19       </xsd:complexType>
20
21       <xsd:simpleType name="gender">
22         <xsd:restriction base="xsd:string">
23           <xsd:enumeration value="F"/>
24           <xsd:enumeration value="M"/>
25         </xsd:restriction>
26       </xsd:simpleType>
27     </xsd:schema>
28   </types>
29
30   <message name="echo_in">
31     <part name="arg1" type="txd:person"/>
32     <part name="arg2" type="txd:person"/>
33   </message>
34
35   <message name="echo_out">
36     <part name="return" type="txd:person"/>
37   </message>
38
39   <message name="echo_basetype_in">
40     <part name="date" type="xsd:date"/>
41     <part name="long" type="xsd:long"/>
42   </message>
43
44   <message name="echo_basetype_out">
45     <part name="return" type="xsd:date"/>
46   </message>
47
48   <portType name="echo_port_type">
49     <operation name="echo">
50       <input message="tns:echo_in"/>
51       <output message="tns:echo_out"/>
52     </operation>
53
54     <operation name="echo_basetype">
55       <input message="tns:echo_basetype_in"/>
56       <output message="tns:echo_basetype_out"/>
57     </operation>
58
59     <operation name="echo_err">
60       <input message="tns:echo_in"/>
61       <output message="tns:echo_out"/>
62     </operation>
63   </portType>
64
65   <binding name="echo_binding" type="tns:echo_port_type">
66     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
67     <operation name="echo">
68       <soap:operation soapAction=""/>
69       <input>
70         <soap:body use="encoded" namespace="urn:rpc"
71             encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
72       </input>
73       <output>
74         <soap:body use="encoded" namespace="urn:rpc"
75             encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
76       </output>
77     </operation>
78
79     <operation name="echo_basetype">
80       <soap:operation soapAction=""/>
81       <input>
82         <soap:body use="encoded" namespace="urn:rpc"
83             encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
84       </input>
85       <output>
86         <soap:body use="encoded" namespace="urn:rpc"
87             encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
88       </output>
89     </operation>
90
91     <operation name="echo_err">
92       <soap:operation soapAction=""/>
93       <input>
94         <soap:body use="encoded" namespace="urn:rpc"
95             encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
96       </input>
97       <output>
98         <soap:body use="encoded" namespace="urn:rpc"
99             encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
100       </output>
101     </operation>
102   </binding>
103
104   <service name="echo_service">
105     <port name="echo_port" binding="tns:echo_binding">
106       <soap:address location="http://localhost:10080"/>
107     </port>
108   </service>
109 </definitions>
Note: See TracBrowser for help on using the browser.