Debian Codegraph @

test/wsdl/filegen/FileGen.wsdl

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <definitions targetNamespace="http://test.com/reference"
3 xmlns:tns="http://test.com/reference"
4 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5 xmlns:serviceNS="http://test.com/reference"
6 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
7 xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
8 xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
9 xmlns="http://schemas.xmlsoap.org/wsdl/">
10
11 <!-- type defs -->
12 <!-- None of these types are referenced, so there shuold be no code emitted -->
13 <types>
14 <xsd:schema targetNamespace="http://test.com/reference"
15 xmlns:xsd="http://www.w3.org/1999/XMLSchema">
16
17 <xsd:simpleType name="stateType">
18 <xsd:restriction base="xsd:string">
19 <xsd:enumeration value="TX"/>
20 <xsd:enumeration value="IN"/>
21 <xsd:enumeration value="OH"/>
22 </xsd:restriction>
23 </xsd:simpleType>
24
25 <xsd:complexType name="address">
26 <xsd:all>
27 <xsd:element name="streetNum" type="xsd:int"/>
28 <xsd:element name="streetName" type="xsd:string"/>
29 <xsd:element name="city" type="xsd:string"/>
30 <xsd:element name="state" type="tns:stateType"/>
31 <xsd:element name="zip" type="xsd:int"/>
32 </xsd:all>
33 </xsd:complexType>
34 </xsd:schema>
35 </types>
36
37 <!-- Messages for the SOAP operation -->
38 <message name="myopRequest">
39 <part name="argument" type="xsd:string"/>
40 </message>
41 <message name="myopResponse">
42 <part name="myopResult" type="xsd:float"/>
43 </message>
44 <!-- We should Emit an opFault Exception class -->
45 <message name="opFault">
46 <part name="info" type="xsd:string"/>
47 </message>
48
49 <!-- messages for the HTTP operation -->
50 <message name="otheropHttpGetIn">
51 <part name="ISBN" type="xsd:string" />
52 </message>
53 <message name="otheropHttpGetOut">
54 <!-- <part name="Body" element="xsd:string" /> -->
55 <part name="Body" type="xsd:string" />
56 </message>
57
58 <!-- unused fault, should not be emitted -->
59 <message name="InvalidTickerFaultMessage">
60 <part name="tickerSymbol" type="xsd:string"/>
61 </message>
62
63
64 <!-- SOAP portType -->
65 <portType name="PortTypeSoap">
66 <operation name="myop">
67 <input message="serviceNS:myopRequest"/>
68 <output message="serviceNS:myopResponse"/>
69 <fault name="opFault" message="serviceNS:opFault"/>
70 </operation>
71 </portType>
72
73 <!-- non-Soap portType, code should not be emitted for it -->
74 <portType name="PortTypeNotSoap">
75 <operation name="otherop">
76 <input message="serviceNS:otheropHttpGetIn"/>
77 <output message="serviceNS:otheropHttpGetOut"/>
78 <fault name="InvalidTickerFault" message="serviceNS:InvalidTickerFaultMessage"/>
79 </operation>
80 </portType>
81
82 <!-- SOAP binding -->
83 <binding name="ReferenceSoapBinding" type="serviceNS:PortTypeSoap">
84 <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
85 <operation name="myop">
86 <soap:operation soapAction="" style="rpc"/>
87 <input>
88 <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace=""/>
89 </input>
90 <output>
91 <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace=""/>
92 </output>
93 <fault name="opFault">
94 <soap:fault name="opFault" use="encoded"/>
95 </fault>
96 </operation>
97 </binding>
98
99 <!-- Non-soap binding, no code should be emitted for it -->
100 <binding name="ReferenceHttpGet" type="serviceNS:PortTypeNotSoap">
101 <http:binding verb="GET" />
102 <operation name="otherop">
103 <http:operation location="/GetReference" />
104 <input>
105 <http:urlEncoded />
106 </input>
107 <output>
108 <mime:mimeXml part="Body" />
109 </output>
110 </operation>
111 </binding>
112
113
114 <service name="ReferenceService">
115 <!-- SOAP port -->
116 <port name="ReferenceService" binding="serviceNS:ReferenceSoapBinding">
117 <soap:address location="http://localhost:8080/axis/services/ReferenceService"/>
118 </port>
119
120 <!-- non-Soap port, no code should be emitted for it -->
121 <port name="ReferenceHttpGet" binding="serviceNS:ReferenceHttpGet">
122 <http:address location="http://test.com/foo/bar" />
123 </port>
124
125 </service>
126 </definitions>