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

root/trunk/test/wsdl/complexcontent/complexContent.wsdl

Revision 1637, 2.3 kB (checked in by nahi, 3 years ago)

add a test of complexContent + elementFormDefault. closes #151.

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <definitions name="complexContent"
3   targetNamespace="urn:complexContent"
4   xmlns="http://schemas.xmlsoap.org/wsdl/"
5   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
6   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
7   xmlns:tns="urn:complexContent"
8   xmlns:txd="urn:complexContent.type">
9
10   <types>
11     <schema elementFormDefault="qualified"
12       xmlns="http://www.w3.org/2001/XMLSchema"
13       targetNamespace="urn:complexContent.type">
14       <complexType name="Base">
15         <sequence>
16           <element name="Id" type="xsd:string"
17             nillable="false" minOccurs="0" maxOccurs="1"/>
18           <element name="Type" type="xsd:string"
19             nillable="true" minOccurs="0" maxOccurs="1"/>
20         </sequence>
21       </complexType>
22
23       <complexType name="Derived">
24         <complexContent>
25           <extension base="txd:Base">
26             <sequence>
27               <element name="Name" type="xsd:string"/>
28             </sequence>
29           </extension>
30         </complexContent>
31       </complexType>
32     </schema>
33
34     <schema elementFormDefault="qualified"
35       xmlns="http://www.w3.org/2001/XMLSchema"
36       targetNamespace="urn:complexContent">
37       <element name="Derived" type="txd:Derived"/>
38
39       <element name="echo">
40         <complexType>
41           <sequence>
42             <element name="item" type="txd:Derived"/>
43           </sequence>
44         </complexType>
45       </element>
46     </schema>
47   </types>
48
49   <message name="echoRequest">
50     <part element="tns:echo" name="parameters"/>
51   </message>
52
53   <message name="echoResponse">
54     <part element="tns:echo" name="parameters"/>
55   </message>
56
57   <portType name="Soap">
58     <operation name="echo">
59       <input  message="tns:echoRequest"/>
60       <output message="tns:echoResponse"/>
61     </operation>
62   </portType>
63
64   <binding name="SoapBinding" type="tns:Soap">
65     <soap:binding style="document"
66       transport="http://schemas.xmlsoap.org/soap/http"/>
67     <operation name="echo">
68       <soap:operation soapAction=""/>
69       <input>
70         <soap:body parts="parameters" use="literal"/>
71       </input>
72       <output>
73         <soap:body use="literal"/>
74       </output>
75     </operation>
76   </binding>
77
78   <service name="complexContentService">
79     <port binding="tns:SoapBinding" name="Soap">
80       <soap:address location="http://localhost:17171/"/>
81     </port>
82   </service>
83 </definitions>
Note: See TracBrowser for help on using the browser.