-
Notifications
You must be signed in to change notification settings - Fork 13
/
wsdiscovery.h
219 lines (160 loc) · 10.3 KB
/
wsdiscovery.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
/* wsdiscovery.h
Generated by wsdl2h 2.8.16 from http://docs.oasis-open.org/ws-dd/discovery/1.1/os/wsdd-discovery-1.1-wsdl-os.wsdl and ../../WS/WS-typemap.dat
2013-10-04 16:18:56 GMT
DO NOT INCLUDE THIS FILE DIRECTLY INTO YOUR PROJECT BUILDS
USE THE soapcpp2-GENERATED SOURCE CODE FILES FOR YOUR PROJECT BUILDS
gSOAP XML Web services tools.
Copyright (C) 2000-2013 Robert van Engelen, Genivia Inc. All Rights Reserved.
Part of this software is released under one of the following licenses:
GPL or Genivia's license for commercial use.
*/
/** @page page_notes Usage Notes
NOTE:
- Run soapcpp2 on wsdiscovery.h to generate the SOAP/XML processing logic.
Use soapcpp2 -I to specify paths for #import
To build with STL, 'stlvector.h' is imported from 'import' dir in package.
Use soapcpp2 -j to generate improved proxy and server classes.
- Use wsdl2h -c and -s to generate pure C code or C++ code without STL.
- Use 'typemap.dat' to control namespace bindings and type mappings.
It is strongly recommended to customize the names of the namespace prefixes
generated by wsdl2h. To do so, modify the prefix bindings in the Namespaces
section below and add the modified lines to 'typemap.dat' to rerun wsdl2h.
- Use Doxygen (www.doxygen.org) on this file to generate documentation.
- Use wsdl2h -R to generate REST operations.
- Use wsdl2h -nname to use name as the base namespace prefix instead of 'ns'.
- Use wsdl2h -Nname for service prefix and produce multiple service bindings
- Use wsdl2h -d to enable DOM support for xsd:anyType.
- Use wsdl2h -g to auto-generate readers and writers for root elements.
- Use wsdl2h -b to auto-generate bi-directional operations (duplex ops).
- Struct/class members serialized as XML attributes are annotated with a '@'.
- Struct/class members that have a special role are annotated with a '$'.
WARNING:
DO NOT INCLUDE THIS ANNOTATED FILE DIRECTLY IN YOUR PROJECT SOURCE CODE.
USE THE FILES GENERATED BY soapcpp2 FOR YOUR PROJECT'S SOURCE CODE:
THE soapStub.h FILE CONTAINS THIS CONTENT WITHOUT ANNOTATIONS.
LICENSE:
@verbatim
--------------------------------------------------------------------------------
gSOAP XML Web services tools
Copyright (C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved.
This software is released under one of the following licenses:
GPL or Genivia's license for commercial use.
--------------------------------------------------------------------------------
GPL license.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA
Author contact information:
This program is released under the GPL with the additional exemption that
compiling, linking, and/or using OpenSSL is allowed.
--------------------------------------------------------------------------------
A commercial-use license is available from Genivia, Inc., [email protected]
--------------------------------------------------------------------------------
@endverbatim
*/
//gsoapopt cw
/******************************************************************************\
* *
* Definitions *
* http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01 *
* *
\******************************************************************************/
/******************************************************************************\
* *
* Import *
* *
\******************************************************************************/
#import "wsdd.h" // wsdd = <http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01>
/******************************************************************************\
* *
* Schema Namespaces *
* *
\******************************************************************************/
/* NOTE:
It is strongly recommended to customize the names of the namespace prefixes
generated by wsdl2h. To do so, modify the prefix bindings below and add the
modified lines to typemap.dat to rerun wsdl2h:
wsdd = "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01"
ns1 = ""
*/
#define SOAP_NAMESPACE_OF_ns1 ""
//gsoap ns1 schema namespace:
//gsoap ns1 schema form: unqualified
/******************************************************************************\
* *
* Built-in Schema Types and Top-Level Elements and Attributes *
* *
\******************************************************************************/
// Imported element "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01":Bye declared as _wsdd__Bye
// Imported element "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01":Hello declared as _wsdd__Hello
// Imported element "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01":Probe declared as _wsdd__Probe
// Imported element "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01":ProbeMatches declared as _wsdd__ProbeMatches
// Imported element "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01":Resolve declared as _wsdd__Resolve
// Imported element "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01":ResolveMatches declared as _wsdd__ResolveMatches
/******************************************************************************\
* *
* Schema Types and Top-Level Elements and Attributes *
* *
* *
\******************************************************************************/
/******************************************************************************\
* *
* Schema Complex Types and Top-Level Elements *
* *
* *
\******************************************************************************/
/******************************************************************************\
* *
* Additional Top-Level Elements *
* *
* *
\******************************************************************************/
/******************************************************************************\
* *
* Additional Top-Level Attributes *
* *
* *
\******************************************************************************/
/******************************************************************************\
* *
* XML Data Binding *
* *
\******************************************************************************/
/**
@page page_XMLDataBinding XML Data Binding
SOAP/XML services use data bindings contractually bound by WSDL and auto-
generated by wsdl2h and soapcpp2 (see Service Bindings). Plain data bindings
are adopted from XML schemas as part of the WSDL types section or when running
wsdl2h on a set of schemas to produce non-SOAP-based XML data bindings.
The following readers and writers are C/C++ data type (de)serializers auto-
generated by wsdl2h and soapcpp2. Run soapcpp2 on this file to generate the
(de)serialization code, which is stored in soapC.c[pp]. Include "soapH.h" in
your code to import these data type and function declarations. Only use the
soapcpp2-generated files in your project build. Do not include the wsdl2h-
generated .h file in your code.
Data can be read in XML and deserialized from:
- a file descriptor, using soap->recvfd = fd
- a socket, using soap->socket = ...
- a C++ stream, using soap->is = ...
- a buffer, using the soap->frecv() callback
Data can be serialized in XML and written to:
- a file descriptor, using soap->sendfd = fd
- a socket, using soap->socket = ...
- a C++ stream, using soap->os = ...
- a buffer, using the soap->fsend() callback
The following options are available for (de)serialization control:
- soap->encodingStyle = NULL; to remove SOAP 1.1/1.2 encodingStyle
- soap_mode(soap, SOAP_XML_TREE); XML without id-ref (no cycles!)
- soap_mode(soap, SOAP_XML_GRAPH); XML with id-ref (including cycles)
- soap_set_namespaces(soap, struct Namespace *nsmap); to set xmlns bindings
@section ns1 Top-level root elements of schema ""
*/
/* End of wsdiscovery.h */