annotate GEMBASSY-1.0.3/gsoap/wsdl/wsdl.h @ 0:8300eb051bea draft

Initial upload
author ktnyt
date Fri, 26 Jun 2015 05:19:29 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1 /*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2 wsdl.h
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4 WSDL 1.1 and WSDL 2.0 schemas
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6 --------------------------------------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7 gSOAP XML Web services tools
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8 Copyright (C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
9 This software is released under one of the following licenses:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
10 GPL or Genivia's license for commercial use.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
11 --------------------------------------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
12 GPL license.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
13
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
14 This program is free software; you can redistribute it and/or modify it under
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
15 the terms of the GNU General Public License as published by the Free Software
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
16 Foundation; either version 2 of the License, or (at your option) any later
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
17 version.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
18
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
19 This program is distributed in the hope that it will be useful, but WITHOUT ANY
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
20 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
21 PARTICULAR PURPOSE. See the GNU General Public License for more details.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
22
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
23 You should have received a copy of the GNU General Public License along with
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
24 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
25 Place, Suite 330, Boston, MA 02111-1307 USA
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
26
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
27 Author contact information:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
28 engelen@genivia.com / engelen@acm.org
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
29 --------------------------------------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
30 A commercial use license is available from Genivia, Inc., contact@genivia.com
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
31 --------------------------------------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
32 */
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
33
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
34 //gsoapopt w
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
35
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
36 //gsoap wsdl schema documentation: WSDL 1.1/2.0 binding schema
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
37 //gsoap wsdl schema namespace: http://schemas.xmlsoap.org/wsdl/
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
38 //gsoap wsdl schema namespace2: http://www.w3.org/ns/wsdl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
39 //gsoap wsdl schema elementForm: qualified
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
40 //gsoap wsdl schema attributeForm: unqualified
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
41
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
42 #import "imports.h"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
43 #import "schema.h"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
44 #import "soap.h"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
45 #import "mime.h"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
46 #import "dime.h"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
47 #import "http.h"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
48 #import "gwsdl.h"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
49 #import "wsam.h"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
50 #import "wsp.h"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
51
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
52 class wsdl__definitions; // forward declaration
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
53
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
54 class wsdl__import
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
55 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
56 @xsd__anyURI namespace_;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
57 @xsd__anyURI location;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
58 private:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
59 wsdl__definitions *definitionsRef;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
60 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
61 wsdl__import();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
62 int preprocess(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
63 int traverse(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
64 void definitionsPtr(wsdl__definitions*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
65 wsdl__definitions *definitionsPtr() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
66 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
67
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
68 class wsdl__types : public xs__schema // WSDL 2.0 <types> inlined schema
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
69 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
70 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
71 std::vector<xs__schema*> xs__schema_; // <xs:schema>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
72 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
73 int preprocess(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
74 int traverse(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
75 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
76
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
77 class wsdl__part
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
78 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
79 @xsd__NMTOKEN name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
80 @xsd__QName element;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
81 @xsd__QName type;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
82 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
83 private:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
84 xs__element *elementRef; // traverse() finds element
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
85 xs__simpleType *simpleTypeRef; // traverse() finds simpleType
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
86 xs__complexType *complexTypeRef; // traverse() finds complexType
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
87 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
88 wsdl__part();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
89 int traverse(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
90 void elementPtr(xs__element*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
91 void simpleTypePtr(xs__simpleType*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
92 void complexTypePtr(xs__complexType*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
93 xs__element *elementPtr() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
94 xs__simpleType *simpleTypePtr() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
95 xs__complexType *complexTypePtr() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
96 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
97
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
98 class wsdl__message
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
99 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
100 @xsd__NMTOKEN name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
101 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
102 std::vector<wsp__Policy> wsp__Policy_; // <wsp:Policy>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
103 std::vector<wsp__PolicyReference> wsp__PolicyReference_;// <wsp:PolicyReference>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
104 std::vector<wsdl__part> part; // <wsdl:part>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
105 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
106 int traverse(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
107 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
108
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
109 class wsdl__ioput
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
110 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
111 @xsd__NMTOKEN name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
112 @xsd__QName message;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
113 @xsd__NMTOKEN messageLabel; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
114 @xsd__QName element; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
115 @xsd__anyURI wsa__Action;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
116 @xsd__anyURI wsam__Action;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
117 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
118 wsp__Policy *wsp__Policy_; // <wsp:Policy>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
119 wsp__PolicyReference *wsp__PolicyReference_; // <wsp:PolicyReference>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
120 private:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
121 wsdl__message *messageRef; // traverse() finds message
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
122 xs__element *elementRef; // traverse() finds element WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
123 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
124 wsdl__ioput();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
125 int traverse(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
126 void messagePtr(wsdl__message*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
127 wsdl__message *messagePtr() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
128 void elementPtr(xs__element*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
129 xs__element *elementPtr() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
130 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
131
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
132 class wsdl__fault
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
133 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
134 @xsd__NMTOKEN name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
135 @xsd__QName message;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
136 @xsd__QName ref; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
137 @xsd__NMTOKEN messageLabel; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
138 @xsd__QName element; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
139 @xsd__anyURI wsa__Action;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
140 @xsd__anyURI wsam__Action;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
141 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
142 wsp__Policy *wsp__Policy_; // <wsp:Policy>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
143 wsp__PolicyReference *wsp__PolicyReference_; // <wsp:PolicyReference>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
144 private:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
145 wsdl__message *messageRef; // traverse() finds message
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
146 xs__element *elementRef; // traverse() finds element WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
147 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
148 wsdl__fault();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
149 int traverse(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
150 void messagePtr(wsdl__message*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
151 wsdl__message *messagePtr() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
152 void elementPtr(xs__element*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
153 xs__element *elementPtr() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
154 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
155
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
156 class wsdl__operation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
157 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
158 @xsd__NMTOKEN name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
159 @xsd__anyURI pattern; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
160 @xsd__anyURI style; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
161 @xsd__string wrpc__signature; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
162 @xsd__string parameterOrder;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
163 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
164 wsp__Policy *wsp__Policy_; // <wsp:Policy>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
165 wsp__PolicyReference *wsp__PolicyReference_; // <wsp:PolicyReference>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
166 $int __union1;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
167 union wsdl__union_ioput // <wsdl:input>|<wsdl:output>
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
168 { wsdl__ioput *input;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
169 wsdl__ioput *output;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
170 } __ioput1;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
171 $int __union2;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
172 union wsdl__union_ioput __ioput2; // <wsdl:input>|<wsdl:output>
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
173 std::vector<wsdl__fault> fault; // <wsdl:fault>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
174 std::vector<wsdl__fault> infault; // <wsdl:infault>* WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
175 std::vector<wsdl__fault> outfault; // <wsdl:outfault>* WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
176 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
177 int traverse(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
178 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
179
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
180 class wsdl__portType // ... and WSDL 2.0 interface
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
181 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
182 @xsd__NMTOKEN name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
183 @xsd__QName extends; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
184 @xsd__anyURI styleDefault; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
185 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
186 wsp__Policy *wsp__Policy_; // <wsp:Policy>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
187 wsp__PolicyReference *wsp__PolicyReference_; // <wsp:PolicyReference>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
188 std::vector<wsdl__fault> fault; // <wsdl:fault>* WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
189 std::vector<wsdl__operation> operation; // <wsdl:operation>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
190 private:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
191 wsdl__definitions *definitionsRef;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
192 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
193 wsdl__portType();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
194 int traverse(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
195 void definitionsPtr(wsdl__definitions*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
196 wsdl__definitions *definitionsPtr() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
197 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
198
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
199 class wsdl__ext_ioput // binding extensibility element
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
200 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
201 @xsd__NMTOKEN name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
202 @xsd__NMTOKEN messageLabel; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
203 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
204 wsp__Policy *wsp__Policy_; // <wsp:Policy>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
205 wsp__PolicyReference *wsp__PolicyReference_; // <wsp:PolicyReference>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
206 dime__message *dime__message_; // <dime:message>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
207 soap__body *soap__body_; // <soap:body>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
208 xsd__string http__urlEncoded; // <http:urlEncoded>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
209 mime__multipartRelated *mime__multipartRelated_;// <mime:multipartRelated>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
210 mime__content *mime__content_; // <mime:content>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
211 mime__mimeXml *mime__mimeXml_; // <mime:mimeXml>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
212 std::vector<soap__header> soap__header_; // <soap:header>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
213 std::vector<wsoap__module> wsoap__module_; // <wsoap:module>* WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
214 std::vector<wsoap__header> wsoap__header_; // <wsoap:header>* WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
215 std::vector<whttp__header> whttp__header_; // <whttp:header>* WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
216 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
217 int traverse(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
218 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
219
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
220 class wsdl__ext_fault // binding extensibility element
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
221 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
222 @xsd__NMTOKEN name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
223 @xsd__QName ref; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
224 @xsd__NMTOKEN messageLabel; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
225 @xsd__QName wsoap__code; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
226 @xsd__QName wsoap__subcodes; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
227 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
228 wsp__Policy *wsp__Policy_; // <wsp:Policy>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
229 wsp__PolicyReference *wsp__PolicyReference_; // <wsp:PolicyReference>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
230 soap__fault *soap__fault_; // <soap:fault>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
231 std::vector<wsoap__module> wsoap__module_; // <wsoap:module>* WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
232 private:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
233 wsdl__fault *faultRef;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
234 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
235 wsdl__ext_fault();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
236 int traverse(wsdl__definitions&, wsdl__portType*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
237 void faultPtr(wsdl__fault*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
238 wsdl__fault *faultPtr() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
239 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
240
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
241 class wsdl__ext_operation // binding extensibility element
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
242 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
243 @xsd__NMTOKEN name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
244 @xsd__QName ref; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
245 @xsd__anyURI wsoap__mep; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
246 @xsd__anyURI wsoap__action; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
247 @xsd__string whttp__method; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
248 @xsd__string whttp__location; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
249 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
250 wsp__Policy *wsp__Policy_; // <wsp:Policy>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
251 wsp__PolicyReference *wsp__PolicyReference_; // <wsp:PolicyReference>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
252 soap__operation *soap__operation_; // <soap:operation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
253 http__operation *http__operation_; // <http:operation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
254 wsdl__ext_ioput *input; // <wsdl:input>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
255 wsdl__ext_ioput *output; // <wsdl:output>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
256 std::vector<wsdl__ext_fault> fault; // <wsdl:fault>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
257 std::vector<wsdl__ext_fault> infault; // <wsdl:infault>* WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
258 std::vector<wsdl__ext_fault> outfault; // <wsdl:outfault>* WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
259 private:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
260 wsdl__operation *operationRef; // traverse() finds operation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
261 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
262 wsdl__ext_operation();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
263 int traverse(wsdl__definitions&, wsdl__portType*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
264 void operationPtr(wsdl__operation*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
265 wsdl__operation *operationPtr() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
266 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
267
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
268 class wsdl__binding
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
269 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
270 @xsd__NMTOKEN name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
271 @xsd__QName type;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
272 @xsd__anyURI type_; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
273 @xsd__QName interface_; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
274 @xsd__boolean whttp__cookies = false; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
275 @xsd__string wsoap__version; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
276 @xsd__anyURI wsoap__protocol; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
277 @xsd__anyURI wsoap__mepDefault; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
278 @xsd__string whttp__methodDefault; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
279 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
280 std::vector<wsp__Policy> wsp__Policy_; // <wsp:Policy>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
281 std::vector<wsp__PolicyReference> wsp__PolicyReference_;// <wsp:PolicyReference>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
282 soap__binding *soap__binding_; // <soap:binding>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
283 http__binding *http__binding_; // <http:binding>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
284 std::vector<wsoap__module> wsoap__module_; // <wsoap:module>* WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
285 std::vector<wsdl__ext_fault> fault; // <wsdl:fault>* WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
286 std::vector<wsdl__ext_operation> operation; // <wsdl:operation>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
287 private:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
288 wsdl__portType *portTypeRef; // traverse() finds portType/interface
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
289 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
290 wsdl__binding();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
291 int traverse(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
292 void portTypePtr(wsdl__portType*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
293 wsdl__portType *portTypePtr() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
294 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
295
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
296 class wsdl__port // ... and WSDL 2.0 endpoint
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
297 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
298 @xsd__NMTOKEN name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
299 @xsd__QName binding;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
300 @xsd__anyURI address; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
301 @xsd__NMTOKEN whttp__authenticationScheme; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
302 @xsd__NMTOKEN whttp__authenticationRealm; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
303 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
304 wsp__Policy *wsp__Policy_; // <wsp:Policy>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
305 wsp__PolicyReference *wsp__PolicyReference_; // <wsp:PolicyReference>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
306 wsa__EndpointReferenceType *wsa__EndpointReference;// <wsa:EndpointReference>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
307 soap__address *soap__address_; // <soap:address>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
308 http__address *http__address_; // <http:address>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
309 private:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
310 wsdl__binding *bindingRef; // traverse() finds binding
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
311 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
312 wsdl__port();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
313 int traverse(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
314 void bindingPtr(wsdl__binding*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
315 wsdl__binding *bindingPtr() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
316 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
317
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
318 class wsdl__service
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
319 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
320 @xsd__NMTOKEN name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
321 @xsd__QName interface_; // WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
322 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
323 std::vector<wsp__Policy> wsp__Policy_; // <wsp:Policy>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
324 std::vector<wsp__PolicyReference> wsp__PolicyReference_;// <wsp:PolicyReference>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
325 std::vector<wsdl__port> port; // <wsdl:port>* WSDL 1.1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
326 std::vector<wsdl__port> endpoint; // <wsdl:port>* WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
327 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
328 int traverse(wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
329 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
330
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
331 class wsdl__definitions
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
332 { public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
333 @xsd__NMTOKEN name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
334 @xsd__anyURI targetNamespace = "";
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
335 @xsd__NMTOKEN version;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
336 std::vector<wsdl__import> import; // <wsdl:import>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
337 xsd__string documentation; // <wsdl:documentation>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
338 xsd__string wsp__UsingPolicy; // <wsp:UsingPolcy>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
339 std::vector<wsp__Policy> wsp__Policy_; // <wsp:Policy>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
340 wsdl__types *types; // <wsdl:types>?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
341 std::vector<wsdl__message> message; // <wsdl:message>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
342 std::vector<wsdl__portType> portType; // <wsdl:portType>* WSDL 1.1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
343 std::vector<wsdl__portType> interface_; // <wsdl:interface>* WSDL 2.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
344 std::vector<wsdl__binding> binding; // <wsdl:binding>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
345 std::vector<wsdl__service> service; // <wsdl:service>*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
346 std::vector<gwsdl__portType> gwsdl__portType_; // <gwsdl:portType>* For the moment, we will hardcode this which makes it easier to access. WSDL 1.1 does not allow this to be extended anyway
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
347 struct soap *soap;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
348 private:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
349 bool soap12;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
350 bool updated;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
351 char* location;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
352 int redirs;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
353 SetOfString builtinTypeSet;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
354 SetOfString builtinElementSet;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
355 SetOfString builtinAttributeSet;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
356 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
357 wsdl__definitions();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
358 wsdl__definitions(struct soap*, const char*, const char*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
359 virtual ~wsdl__definitions();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
360 int get(struct soap*); // gSOAP getter is triggered after parsing
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
361 int preprocess();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
362 int traverse();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
363 int read(int, char**);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
364 int read(const char *cwd, const char*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
365 const char* sourceLocation();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
366 int error();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
367 void print_fault();
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
368 void builtinType(const char*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
369 void builtinTypes(const SetOfString&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
370 void builtinElement(const char*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
371 void builtinElements(const SetOfString&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
372 void builtinAttribute(const char*);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
373 void builtinAttributes(const SetOfString&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
374 const SetOfString& builtinTypes() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
375 const SetOfString& builtinElements() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
376 const SetOfString& builtinAttributes() const;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
377 friend ostream& operator<<(ostream&, const wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
378 friend istream& operator>>(istream&, wsdl__definitions&);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
379 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
380
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
381 extern ostream &operator<<(ostream &o, const wsdl__definitions &e);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
382 extern istream &operator>>(istream &i, wsdl__definitions &e);