Debian Codegraph @

test/wsdl/polymorphism/polymorphism.wsdl

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <definitions
3 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
4 xmlns:s="http://www.w3.org/2001/XMLSchema"
5 xmlns:s0="http://xml.apache.org/axis/PolymorphismTest"
6 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
7 targetNamespace="http://xml.apache.org/axis/PolymorphismTest"
8 xmlns="http://schemas.xmlsoap.org/wsdl/">
9 <documentation>
10 This tests the ability to return a polymorphic child type from an
11 operation which has been declared to return a parent type. We'll
12 confirm that we get back the right type (a "B"), and make sure that
13 we do it in an environment where the server would normally NOT send
14 xsi:types at all (i.e. the "sendXsiTypes" option set to "false"), since
15 polymorphic types should always force xsi:type.
16 </documentation>
17 <types>
18 <s:schema elementFormDefault="qualified"
19 targetNamespace="http://xml.apache.org/axis/PolymorphismTest">
20 <s:element name="GetBAsA">
21 <s:complexType>
22 <s:sequence>
23 <s:element name="sendC" minOccurs="1" maxOccurs="1"
24 type="s:boolean"/>
25 </s:sequence>
26 </s:complexType>
27 </s:element>
28 <s:element name="GetBAsAResponse">
29 <s:complexType>
30 <s:sequence>
31 <s:element minOccurs="0" maxOccurs="1" name="GetBAsAResult"
32 type="s0:A" />
33 </s:sequence>
34 </s:complexType>
35 </s:element>
36 <s:complexType name="A">
37 <s:sequence>
38 <s:element minOccurs="0" maxOccurs="1" name="a" type="s:string" />
39 </s:sequence>
40 </s:complexType>
41 <s:complexType name="B">
42 <s:complexContent mixed="false">
43 <s:extension base="s0:A">
44 <s:sequence>
45 <s:element minOccurs="0" maxOccurs="1" name="b" type="s:string" />
46 </s:sequence>
47 </s:extension>
48 </s:complexContent>
49 </s:complexType>
50 <s:element name="A" nillable="true" type="s0:A" />
51 </s:schema>
52 </types>
53 <message name="GetBAsASoapIn">
54 <part name="parameters" element="s0:GetBAsA" />
55 </message>
56 <message name="GetBAsASoapOut">
57 <part name="parameters" element="s0:GetBAsAResponse" />
58 </message>
59 <portType name="PolymorphismTest">
60 <operation name="GetBAsA">
61 <input message="s0:GetBAsASoapIn" />
62 <output message="s0:GetBAsASoapOut" />
63 </operation>
64 </portType>
65 <binding name="PolymorphismTestSoap" type="s0:PolymorphismTest">
66 <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
67 style="document" />
68 <operation name="GetBAsA">
69 <soap:operation soapAction="" style="document" />
70 <input>
71 <soap:body use="literal" />
72 </input>
73 <output>
74 <soap:body use="literal" />
75 </output>
76 </operation>
77 </binding>
78 <service name="PolymorphismTest">
79 <port name="PolymorphismTest" binding="s0:PolymorphismTestSoap">
80 <soap:address location="http://localhost:8080/axis/services/PolymorphismTest" />
81 </port>
82 </service>
83 </definitions>