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

Initial upload
author ktnyt
date Fri, 26 Jun 2015 05:19:29 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:8300eb051bea
1 /*
2 soap.h
3
4 WSDL/SOAP binding schema
5
6 --------------------------------------------------------------------------------
7 gSOAP XML Web services tools
8 Copyright (C) 2000-2012, Robert van Engelen, Genivia Inc. All Rights Reserved.
9 This software is released under one of the following licenses:
10 GPL or Genivia's license for commercial use.
11 --------------------------------------------------------------------------------
12 GPL license.
13
14 This program is free software; you can redistribute it and/or modify it under
15 the terms of the GNU General Public License as published by the Free Software
16 Foundation; either version 2 of the License, or (at your option) any later
17 version.
18
19 This program is distributed in the hope that it will be useful, but WITHOUT ANY
20 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
21 PARTICULAR PURPOSE. See the GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License along with
24 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
25 Place, Suite 330, Boston, MA 02111-1307 USA
26
27 Author contact information:
28 engelen@genivia.com / engelen@acm.org
29 --------------------------------------------------------------------------------
30 A commercial use license is available from Genivia, Inc., contact@genivia.com
31 --------------------------------------------------------------------------------
32 */
33
34 //gsoap soap schema documentation: WSDL 1.1 SOAP binding schema
35 //gsoap soap schema namespace: http://schemas.xmlsoap.org/wsdl/soap/
36
37 //gsoap wsoap schema documentation: WSDL 2.0 SOAP binding schema
38 //gsoap wsoap schema namespace: http://www.w3.org/ns/wsdl/soap
39
40 #import "imports.h"
41
42 class wsdl__definitions; // forward declaration
43 class wsdl__message; // forward declaration
44 class wsdl__part; // forward declaration
45
46 enum soap__styleChoice { rpc, document };
47
48 class soap__binding
49 { public:
50 @xsd__anyURI transport;
51 @enum soap__styleChoice *style;
52 };
53
54 class soap__operation
55 { public:
56 @xsd__anyURI soapAction;
57 @xsd__boolean soapActionRequired = true;
58 @enum soap__styleChoice *style;
59 };
60
61 enum soap__useChoice { literal, encoded };
62
63 class soap__body
64 { public:
65 @xsd__anyURI encodingStyle;
66 @xsd__NMTOKENS parts;
67 @enum soap__useChoice use;
68 @xsd__anyURI namespace_;
69 };
70
71 class soap__fault
72 { public:
73 @xsd__NMTOKEN name;
74 @xsd__anyURI encodingStyle;
75 @enum soap__useChoice use;
76 @xsd__anyURI namespace_;
77 };
78
79 class soap__headerfault
80 { public:
81 @xsd__QName message;
82 @xsd__NMTOKEN part;
83 @enum soap__useChoice use;
84 @xsd__anyURI encodingStyle;
85 @xsd__anyURI namespace_;
86 private:
87 wsdl__message *messageRef;
88 wsdl__part *partRef;
89 public:
90 int traverse(wsdl__definitions&);
91 void messagePtr(wsdl__message*);
92 void partPtr(wsdl__part*);
93 wsdl__message *messagePtr() const;
94 wsdl__part *partPtr() const;
95 };
96
97 class soap__header
98 { public:
99 @xsd__QName message;
100 @xsd__NMTOKEN part;
101 @enum soap__useChoice use;
102 @xsd__anyURI encodingStyle;
103 @xsd__anyURI namespace_;
104 std::vector<soap__headerfault> headerfault; // <soap:headerfault>*
105 private:
106 wsdl__message *messageRef;
107 wsdl__part *partRef;
108 public:
109 int traverse(wsdl__definitions&);
110 void messagePtr(wsdl__message*);
111 void partPtr(wsdl__part*);
112 wsdl__message *messagePtr() const;
113 wsdl__part *partPtr() const;
114 };
115
116 class soap__address
117 { public:
118 @xsd__anyURI location;
119 };
120
121 class wsoap__module
122 { public:
123 @xsd__anyURI ref;
124 @xsd__boolean required = false;
125 };
126
127 class wsoap__header
128 { public:
129 @xsd__QName element;
130 @xsd__boolean mustUnderstand_ = false;
131 @xsd__boolean required = false;
132 private:
133 xs__element *elementRef;
134 public:
135 int traverse(wsdl__definitions&);
136 void elementPtr(xs__element*);
137 xs__element *elementPtr() const;
138 };
139
140