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

root/trunk/test/wsdl/document/document.wsdl

Revision 1957, 2.8 kB (checked in by nahi, 1 year ago)
  • added a test for xsd:long in a struct.
Line 
1 <?xml version="1.0" encoding="utf-8"?>
2 <definitions
3     name="echo"
4     targetNamespace="urn:docrpc"
5     xmlns:tns="urn:docrpc"
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:docrpc">
11       <xsd:complexType name="echo_struct">
12         <xsd:sequence>
13           <xsd:element minOccurs="0" maxOccurs="1" name="m_string" type="xsd:string" />
14           <xsd:element minOccurs="0" maxOccurs="1" name="m_datetime" type="xsd:dateTime" />
15         </xsd:sequence>
16         <xsd:attribute name="m_attr" type="xsd:string" />
17       </xsd:complexType>
18
19       <xsd:element name="echoele">
20         <xsd:complexType>
21           <xsd:sequence>
22             <xsd:element minOccurs="0" maxOccurs="1" name="struct1" type="tns:echo_struct" />
23             <xsd:element minOccurs="0" maxOccurs="1" name="struct-2" type="tns:echo_struct" />
24             <xsd:element minOccurs="0" maxOccurs="1" name="long" type="xsd:long" />
25           </xsd:sequence>
26           <xsd:attribute name="attr_string" type="xsd:string" />
27           <xsd:attribute name="attr-int" type="xsd:int" />
28         </xsd:complexType>
29       </xsd:element>
30       <xsd:element name="echo_response">
31         <xsd:complexType>
32           <xsd:sequence>
33             <xsd:element minOccurs="0" maxOccurs="1" name="struct1" type="tns:echo_struct" />
34             <xsd:element minOccurs="0" maxOccurs="1" name="struct-2" type="tns:echo_struct" />
35             <xsd:element minOccurs="0" maxOccurs="1" name="long" type="xsd:long" />
36           </xsd:sequence>
37           <xsd:attribute name="attr_string" type="xsd:string" />
38           <xsd:attribute name="attr-int" type="xsd:int" />
39         </xsd:complexType>
40       </xsd:element>
41     </xsd:schema>
42   </types>
43
44   <message name="echo_in">
45     <part name="parameters" element="tns:echoele" />
46   </message>
47   <message name="echo_out">
48     <part name="parameters" element="tns:echo_response" />
49   </message>
50
51   <portType name="docrpc_porttype">
52     <operation name="echo">
53       <input message="tns:echo_in" />
54       <output message="tns:echo_out" />
55     </operation>
56   </portType>
57
58   <binding name="docrpc_binding" type="tns:docrpc_porttype">
59     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
60     <operation name="echo">
61       <soap:operation soapAction="urn:docrpc:echo" style="document" />
62       <input>
63         <soap:body use="literal" />
64       </input>
65       <output>
66         <soap:body use="literal" />
67       </output>
68     </operation>
69   </binding>
70
71   <service name="docrpc_service">
72     <port name="docprc_service_port" binding="tns:docrpc_binding">
73       <soap:address location="http://localhost:17171/" />
74     </port>
75   </service>
76 </definitions>
Note: See TracBrowser for help on using the browser.