Debian Codegraph @

tests/test_cases/features/wsdl/wsdl11_example5_with_fault.wsdl

raw
1 <?xml version="1.0"?>
2 <!-- Example from WSDL 1.1 definition with SOAP 1.1 bindings:
3 href: https://www.w3.org/TR/2001/NOTE-wsdl-20010315#_soap-e -->
4 <definitions name="StockQuote"
5 targetNamespace="http://example.com/stockquote.wsdl"
6 xmlns:tns="http://example.com/stockquote.wsdl"
7 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
8 xmlns:xsd1="http://example.com/stockquote/schema"
9 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
10 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
11 xmlns="http://schemas.xmlsoap.org/wsdl/">
12
13 <types>
14 <schema targetNamespace="http://example.com/stockquote/schema"
15 xmlns="http://www.w3.org/2001/XMLSchema"
16 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
17
18 <!-- use fallback locations for finding soap-encoding.xsd schema -->
19 <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
20
21 <complexType name="TimePeriod">
22 <all>
23 <element name="startTime" type="xsd:time"/>
24 <element name="endTime" type="xsd:time"/>
25 </all>
26 </complexType>
27 <complexType name="ArrayOfFloat">
28 <complexContent>
29 <restriction base="soapenc:Array">
30 <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:float[]"/>
31 </restriction>
32 </complexContent>
33 </complexType>
34 </schema>
35 </types>
36
37 <message name="GetTradePricesInput">
38 <part name="tickerSymbol" type="xsd:string"/>
39 <part name="timePeriod" type="xsd1:TimePeriod"/>
40 </message>
41
42 <message name="GetTradePricesOutput">
43 <part name="result" type="xsd1:ArrayOfFloat"/>
44 <part name="frequency" type="xsd:float"/>
45 </message>
46
47 <message name="FaultMessage">
48 <part name="fault" type="xsd:string"/>
49 </message>
50
51 <portType name="StockQuotePortType">
52 <operation name="GetTradePrices" parameterOrder="tickerSymbol timePeriod frequency">
53 <input message="tns:GetTradePricesInput"/>
54 <output message="tns:GetTradePricesOutput"/>
55 <fault name="fault" message="tns:FaultMessage"/>
56 </operation>
57 </portType>
58
59 <binding name="StockQuoteBinding" type="tns:StockQuotePortType">
60 <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
61 <operation name="GetTradePrices">
62 <soap:operation soapAction="http://example.com/GetTradePrices"/>
63 <input>
64 <soap:body use="encoded" namespace="http://example.com/stockquote"
65 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
66 </input>
67 <output>
68 <soap:body use="encoded" namespace="http://example.com/stockquote"
69 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
70 </output>
71 <fault name="fault">
72 <soap:fault name="fault"/>
73 </fault>
74 </operation>
75 </binding>
76
77 <service name="StockQuoteService">
78 <documentation>My first service</documentation>
79 <port name="StockQuotePort" binding="tns:StockQuoteBinding">
80 <soap:address location="http://example.com/stockquote"/>
81 </port>
82 </service>
83 </definitions>