0
|
1 # typemap.dat
|
|
2 #
|
|
3 # Use this file to define namespace prefix and type bindings for
|
|
4 # the generated header files by the 'wsdl2h' tool. typemap.dat is the
|
|
5 # default file processed by 'wsdl2h' to customize its output. You can use
|
|
6 # wsdl2h option -t to specify an alternate file.
|
|
7 #
|
|
8 # XML namespace prefix bindings can be provided to override the default
|
|
9 # choice of the ns1, ns2, ... prefixes generated by wsdl2h. It is highly
|
|
10 # recommended to provide namespace prefixes for your project's XML
|
|
11 # namespaces. In this way, changes to the WSDL (or newer releases of
|
|
12 # wsdl2h) will have a minimal impact on coding.
|
|
13 # Bindings for namespace prefixes are of the form:
|
|
14 # prefix = "URI"
|
|
15 #
|
|
16 # Type bindings can be provided to bind XML schema types to C/C++
|
|
17 # types for your project.
|
|
18 # Type bindings are of the form:
|
|
19 # prefix__type = declaration | use | ptr-use
|
|
20 # where 'prefix__type' is the C/C++-translation of the schema type,
|
|
21 # 'declaration' introduces the type in the header file, the optional
|
|
22 # 'use' specifies how the type is used directly, and the optional
|
|
23 # 'ptr-use' specifies how the type is used as a pointer type.
|
|
24 # For example:
|
|
25 # xsd__string = | char* | char*
|
|
26 # or using wide strings:
|
|
27 # xsd__string = | wchar_t* | wchar_t*
|
|
28 # or using C++ strings, which need a pointer (added by default):
|
|
29 # xsd__string = | std::string
|
|
30 # or using C++ wstrings:
|
|
31 # xsd__string = | std::wstring
|
|
32 # After enabling this line, all XSD strings will be mapped to char* or
|
|
33 # std::wstring, respectively to support Unicode. Note that the
|
|
34 # 'declaration' part is empty in this case.
|
|
35 #
|
|
36 # When a type binding requires only the usage to be changed, the
|
|
37 # declaration part can be replaced by elipsis ..., as in:
|
|
38 # prefix__type = ... | use | ptr-use
|
|
39 # This ensure that the wsdl2h-generated type definition is preserved,
|
|
40 # while the use and ptr-use are remapped.
|
|
41 # For example, this is useful to map schema polymorphic types to C types,
|
|
42 # where we need to be able to both handle a base type and its extensions
|
|
43 # as per schema extensibility. Say base type ns:base allows derived
|
|
44 # extensions and we need to map this to C types as follows:
|
|
45 # ns__base = ... | int __type_base; void*
|
|
46 # where __type_base and void* are used to (de)serialize any data type,
|
|
47 # including base and its derived types.
|
|
48 #
|
|
49 # Additional data and function members can be provided to extend a
|
|
50 # generated struct or class.
|
|
51 # Class and struct extensions are of the form:
|
|
52 # prefix__type = $ member-declaration
|
|
53 # For example, to add a constructor and destructor to class myns__record:
|
|
54 # myns__record = $ myns__record();
|
|
55 # myns__record = $ ~myns__record();
|
|
56 #
|
|
57 # Type remappings can be given to map a type to another type:
|
|
58 # prefix__type1 == prefix__type2
|
|
59 # which replaces 'prefix__type1' by 'prefix__type2' in the wsdl2h output.
|
|
60 # For example:
|
|
61 # SOAP_ENC__boolean == xsd__boolean
|
|
62 #
|
|
63 # Any other material to be included in the generated header file can be
|
|
64 # provided by enclosing the text within brackets [ and ]. Brackets MUST
|
|
65 # appear at the start of a new line.
|
|
66 # For example, to include a note:
|
|
67 #[
|
|
68 #// TODO: Don't forget to bind the namespace prefixes!
|
|
69 #]
|
|
70 # This comment appears as the first line in the generated header file.
|
|
71 #
|
|
72 #-------------------------------------------------------------------------------
|
|
73 #gSOAP XML Web services tools
|
|
74 #Copyright (C) 2000-2012, Robert van Engelen, Genivia Inc. All Rights Reserved.
|
|
75 #This software is released under one of the following two licenses:
|
|
76 #GPL or Genivia's license for commercial use.
|
|
77 #-------------------------------------------------------------------------------
|
|
78 #GPL license.
|
|
79 #
|
|
80 #This program is free software; you can redistribute it and/or modify it under
|
|
81 #the terms of the GNU General Public License as published by the Free Software
|
|
82 #Foundation; either version 2 of the License, or (at your option) any later
|
|
83 #version.
|
|
84 #
|
|
85 #This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
86 #WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
87 #PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
88 #
|
|
89 #You should have received a copy of the GNU General Public License along with
|
|
90 #this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
|
91 #Place, Suite 330, Boston, MA 02111-1307 USA
|
|
92 #
|
|
93 #Author contact information:
|
|
94 #engelen@genivia.com / engelen@acm.org
|
|
95 #-------------------------------------------------------------------------------
|
|
96 #A commercial use license is available from Genivia, Inc., contact@genivia.com
|
|
97 #-------------------------------------------------------------------------------
|
|
98
|
|
99 [
|
|
100 // Reminder: Modify typemap.dat to customize the header file generated by wsdl2h
|
|
101 ]
|
|
102
|
|
103 # Remember: type bindings are given on a single line (use \ to continue
|
|
104 # with the next line). Here is an example binding for the XSD int type
|
|
105 # that maps to an 'int':
|
|
106 # xsd__int = | int
|
|
107
|
|
108 # To use regular char* strings instead of std::string, use:
|
|
109 # xsd__string = | char* | char*
|
|
110
|
|
111 # For char* serialized with xsi:type when using soapcpp2 option -t, use:
|
|
112 # xsd__string = typedef char *xsd__string; | xsd__string | xsd__string
|
|
113
|
|
114 # More examples:
|
|
115 # xsd__boolean = enum xsd__boolean { false_, true_ }; | enum xsd__boolean
|
|
116
|
|
117 # Uncomment the line below to use struct tm instead of time_t xsd:dateTime
|
|
118 # Must compile and link custom/struct_tm.c with the project
|
|
119 # xsd__dateTime = #import "custom/struct_tm.h" | xsd__dateTime
|
|
120
|
|
121 # Uncomment the line below to use timeval with usec precision xsd:dateTime
|
|
122 # Must compile and link custom/struct_timeval.c with the project
|
|
123 # xsd__dateTime = #import "custom/struct_timeval.h" | xsd__dateTime
|
|
124
|
|
125 # When compiling WITH_LEAN there is no hexBinary serializer. You can
|
|
126 # remap the hexBinary type to a string as follows:
|
|
127 # xsd__hexBinary = | char*
|
|
128
|
|
129 # Uncomment the line below to use LONG64 int for xsd:duration
|
|
130 # (with high ms precision)
|
|
131 # Must compile and link custom/duration.c with the project
|
|
132 xsd__duration = #import "custom/duration.h" | xsd__duration
|
|
133
|
|
134 # SOAP-ENV mapping (note: SOAP Body content is mapped to an XML string)
|
|
135
|
|
136 SOAP_ENV__Envelope = struct SOAP_ENV__Envelope { struct SOAP_ENV__Header *SOAP_ENV__Header; _XML SOAP_ENV__Body; }; | struct SOAP_ENV__Envelope
|
|
137 SOAP_ENV__Header = | struct SOAP_ENV__Header
|
|
138 SOAP_ENV__Fault = | struct SOAP_ENV__Fault
|
|
139 SOAP_ENV__Detail = | struct SOAP_ENV__Detail
|
|
140 SOAP_ENV__Code = | struct SOAP_ENV__Code
|
|
141 SOAP_ENV__Subcode = | struct SOAP_ENV__Subcode
|
|
142 SOAP_ENV__Reason = | struct SOAP_ENV__Reason
|
|
143
|
|
144 # Temporary URI
|
|
145
|
|
146 tempuri = "http://tempuri.org/"
|
|
147
|
|
148 # Empty URI
|
|
149
|
|
150 empty = ""
|
|
151
|
|
152 # .NET WCF DataContract Serialization Schema
|
|
153
|
|
154 ser = <http://schemas.microsoft.com/2003/10/Serialization/>
|
|
155 arr = "http://schemas.microsoft.com/2003/10/Serialization/Arrays"
|
|
156
|
|
157 # .NET WCF DataContract Serialization Schema remappings
|
|
158
|
|
159 _ser__anyURI == xsd__anyURI
|
|
160 _ser__boolean == xsd__boolean
|
|
161 _ser__base64Binary == xsd__base64Binary
|
|
162 _ser__byte == xsd__byte
|
|
163 _ser__dateTime == xsd__dateTime
|
|
164 _ser__decimal == xsd__decimal
|
|
165 _ser__double == xsd__double
|
|
166 _ser__float == xsd__float
|
|
167 _ser__int == xsd__int
|
|
168 _ser__long == xsd__long
|
|
169 _ser__QName == xsd__QName
|
|
170 _ser__short == xsd__short
|
|
171 _ser__string == xsd__string
|
|
172 _ser__unsignedByte == xsd__unsignedByte
|
|
173 _ser__unsignedInt == xsd__unsignedInt
|
|
174 _ser__unsignedLong == xsd__unsignedLong
|
|
175 _ser__unsignedShort == xsd__unsignedShort
|
|
176
|
|
177 # .NET WCF ser:anyType represents an object (see import/ser.h):
|
|
178
|
|
179 _ser__anyType = | struct __ser__anyType | struct __ser__anyType
|
|
180
|
|
181 # .NET WCF ser:char element and type represents a Unicode character
|
|
182
|
|
183 _ser__char = | int
|
|
184 ser__char = | int
|
|
185
|
|
186 # .NET WCF ser:duration element and type maps to xsd:duration
|
|
187
|
|
188 _ser__duration == xsd__duration
|
|
189 ser__duration == xsd__duration
|
|
190
|
|
191 # .NET WCF ser:guid pattern = "[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"
|
|
192
|
|
193 _ser__guid = | char*
|
|
194 ser__guid = | char*
|
|
195
|
|
196 # .NET WCF samples
|
|
197
|
|
198 mssamh = "http://Microsoft.Samples.Http"
|
|
199 mssamhi = "http://Microsoft.Samples.Http/Imports"
|
|
200
|
|
201 mssamt = "http://Microsoft.Samples.TransportSecurity"
|
|
202 mssamti = "http://Microsoft.Samples.TransportSecurity/Imports"
|
|
203
|
|
204 mssamm = "http://Microsoft.Samples.MessageSecurity"
|
|
205 mssammi = "http://Microsoft.Samples.MessageSecurity/Imports"
|
|
206
|
|
207 mssadh = "http://Microsoft.Samples.DualHttp"
|
|
208 mssadhi = "http://Microsoft.Samples.DualHttp/Imports"
|
|
209
|
|
210 # MTOM xop and xmime are imported from xop.h, xmime.h, and xmlmime.h:
|
|
211 # Note: changed xmlmime to xmime to avoid other MTOM tools from
|
|
212 # complaining that 'xml' is reserved.
|
|
213
|
|
214 xop = <http://www.w3.org/2004/08/xop/include>
|
|
215 xmime = <http://www.w3.org/2004/06/xmlmime>
|
|
216 xmime4 = <http://www.w3.org/2004/11/xmlmime>
|
|
217 xmime5 = <http://www.w3.org/2005/05/xmlmime>
|
|
218
|
|
219 # xop:Include is imported from xop.h and redefined as _xop__Include:
|
|
220
|
|
221 xop__Include = #import "xop.h" | _xop__Include
|
|
222
|
|
223 # xmime/xmlmime:contentType attribute is a string:
|
|
224
|
|
225 _xmime__contentType = | char* | char*
|
|
226 _xmime4__contentType = | char* | char*
|
|
227 _xmime5__contentType = | char* | char*
|
|
228
|
|
229 # exc-c14n
|
|
230
|
|
231 c14n = <http://www.w3.org/2001/10/xml-exc-c14n#>
|
|
232
|
|
233 # WS-Addressing (2003, 2004, and 2005 schemas)
|
|
234 # See import/wsa.h, import/wsa3.h etc for definitions and code examples
|
|
235 # The API is defined in plugin/wsaapi.c, plugin/wsaapi3.c, etc.
|
|
236
|
|
237 wsa = <http://schemas.xmlsoap.org/ws/2004/08/addressing>
|
|
238 wsa3 = <http://schemas.xmlsoap.org/ws/2003/03/addressing>
|
|
239 wsa4 = <http://schemas.xmlsoap.org/ws/2004/03/addressing>
|
|
240 wsa5 = <http://www.w3.org/2005/08/addressing>
|
|
241
|
|
242 # The types below should not use pointers, so we add a 3rd column:
|
|
243
|
|
244 _wsa__Action = | | _wsa__Action
|
|
245 _wsa__MessageID = | | _wsa__MessageID
|
|
246 _wsa__To = | | _wsa__To
|
|
247
|
|
248 _wsa3__Action = | | _wsa3__Action
|
|
249 _wsa3__MessageID = | | _wsa3__MessageID
|
|
250 _wsa3__To = | | _wsa3__To
|
|
251
|
|
252 _wsa4__Action = | | _wsa4__Action
|
|
253 _wsa4__MessageID = | | _wsa4__MessageID
|
|
254 _wsa4__To = | | _wsa4__To
|
|
255
|
|
256 _wsa5__Action = | | _wsa5__Action
|
|
257 _wsa5__MessageID = | | _wsa5__MessageID
|
|
258 _wsa5__To = | | _wsa5__To
|
|
259
|
|
260 # WS-ReliableMessaging 1.1 and 1.0 (and obsolete WS-Reliability 2004)
|
|
261
|
|
262 wsrm = <http://docs.oasis-open.org/ws-rx/wsrm/200702>
|
|
263 wsrm5 = <http://schemas.xmlsoap.org/ws/2005/02/rm>
|
|
264 wsrm4 = <http://docs.oasis-open.org/wsrm/2004/06/ws-reliability-1.1.xsd>
|
|
265
|
|
266 # WS-Discovery 1.1 and 1.0
|
|
267
|
|
268 wsdd = <http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01>
|
|
269 wsdd10 = <http://schemas.xmlsoap.org/ws/2005/04/discovery>
|
|
270
|
|
271 wsdd10__HelloType = | wsdd__HelloType
|
|
272 wsdd10__ByeType = | wsdd__ByeType
|
|
273 wsdd10__ProbeType = | wsdd__ProbeType
|
|
274 wsdd10__ProbeMatchesType = | wsdd__ProbeMatchesType
|
|
275 wsdd10__ProbeMatchType = | wsdd__ProbeMatchType
|
|
276 wsdd10__ResolveType = | wsdd__ResolveType
|
|
277 wsdd10__ResolveMatchesType = | wsdd__ResolveMatchesType
|
|
278 wsdd10__ResolveMatchType = | wsdd__ResolveMatchType
|
|
279 wsdd10__ScopesType = | wsdd__ScopesType
|
|
280 wsdd10__SecurityType = | wsdd__SecurityType
|
|
281 wsdd10__SigType = | wsdd__SigType
|
|
282 wsdd10__AppSequenceType = | wsdd__AppSequenceType
|
|
283
|
|
284 # WS-Policy
|
|
285
|
|
286 wsp = <http://schemas.xmlsoap.org/ws/2004/09/policy>
|
|
287
|
|
288 # WS-SecureConversation
|
|
289
|
|
290 wsc = <http://schemas.xmlsoap.org/ws/2005/02/sc>
|
|
291
|
|
292 # WS-Trust 1.0
|
|
293
|
|
294 wst = <http://schemas.xmlsoap.org/ws/2005/02/trust>
|
|
295
|
|
296 # WS-Security wsse 2004 v1.0 and 1.1 and old wsse 2002 schema
|
|
297
|
|
298 wsse11 = <http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd>
|
|
299 wsse = <http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd>
|
|
300 wsse2 = <http://schemas.xmlsoap.org/ws/2002/12/secext>
|
|
301
|
|
302 _wsse2__Security == _wsse__Security
|
|
303 wsse2__Security == wsse__Security
|
|
304
|
|
305 # wsu 2004
|
|
306
|
|
307 wsu = <http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd>
|
|
308
|
|
309 _wsu__Id = | char*
|
|
310 _wsu__Created = | time_t
|
|
311 _wsu__Expires = | time_t
|
|
312
|
|
313 wsu__AttributedDateTime = | time_t
|
|
314 wsu__AttributedURI = | char*
|
|
315
|
|
316 # Bindings for ds and xenc for WS-Security protocols:
|
|
317
|
|
318 ds = <http://www.w3.org/2000/09/xmldsig#>
|
|
319 xenc = <http://www.w3.org/2001/04/xmlenc#>
|
|
320
|
|
321 # xlink
|
|
322
|
|
323 xlink = <http://www.w3.org/1999/xlink>
|
|
324
|
|
325 _xlink__actuate = | char*
|
|
326 _xlink__arcrole = | char*
|
|
327 _xlink__from = | char*
|
|
328 _xlink__href = | char*
|
|
329 _xlink__label = | char*
|
|
330 _xlink__role = | char*
|
|
331 _xlink__show = | char*
|
|
332 _xlink__to = | char*
|
|
333 _xlink__title = | char*
|
|
334 _xlink__type = | char*
|
|
335
|
|
336 # wsrp routing protocol (deprecated)
|
|
337
|
|
338 wsrp = <http://schemas.xmlsoap.org/rp/>
|
|
339
|
|
340 # ONVIF recommended prefixes as per 8/20/12
|
|
341 # http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl
|
|
342 # http://www.onvif.org/onvif/ver10/event/wsdl/event.wsdl
|
|
343 # http://www.onvif.org/onvif/ver10/display.wsdl
|
|
344 # http://www.onvif.org/onvif/ver10/deviceio.wsdl
|
|
345 # http://www.onvif.org/onvif/ver20/imaging/wsdl/imaging.wsdl
|
|
346 # http://www.onvif.org/onvif/ver10/media/wsdl/media.wsdl
|
|
347 # http://www.onvif.org/onvif/ver20/ptz/wsdl/ptz.wsdl
|
|
348 # http://www.onvif.org/onvif/ver10/receiver.wsdl
|
|
349 # http://www.onvif.org/onvif/ver10/recording.wsdl
|
|
350 # http://www.onvif.org/onvif/ver10/search.wsdl
|
|
351 # http://www.onvif.org/onvif/ver10/network/wsdl/remotediscovery.wsdl
|
|
352 # http://www.onvif.org/onvif/ver10/replay.wsdl
|
|
353 # http://www.onvif.org/onvif/ver20/analytics/wsdl/analytics.wsdl
|
|
354 # http://www.onvif.org/onvif/ver10/analyticsdevice.wsdl
|
|
355 # http://www.onvif.org/onvif/ver10/schema/onvif.xsd
|
|
356
|
|
357 tds = "http://www.onvif.org/ver10/device/wsdl"
|
|
358 tev = "http://www.onvif.org/ver10/events/wsdl"
|
|
359 tls = "http://www.onvif.org/ver10/display/wsdl"
|
|
360 tmd = "http://www.onvif.org/ver10/deviceIO/wsdl"
|
|
361 timg = "http://www.onvif.org/ver20/imaging/wsdl"
|
|
362 trt = "http://www.onvif.org/ver10/media/wsdl"
|
|
363 tptz = "http://www.onvif.org/ver20/ptz/wsdl"
|
|
364 trv = "http://www.onvif.org/ver10/receiver/wsdl"
|
|
365 trc = "http://www.onvif.org/ver10/recording/wsdl"
|
|
366 tse = "http://www.onvif.org/ver10/search/wsdl"
|
|
367 trp = "http://www.onvif.org/ver10/replay/wsdl"
|
|
368 tan = "http://www.onvif.org/ver20/analytics/wsdl"
|
|
369 tad = "http://www.onvif.org/ver10/analyticsdevice/wsdl"
|
|
370 tdn = "http://www.onvif.org/ver10/network/wsdl"
|
|
371 tt = "http://www.onvif.org/ver10/schema"
|
|
372
|
|
373 # OASIS recommended prefixes
|
|
374
|
|
375 wsnt = "http://docs.oasis-open.org/wsn/b-2"
|
|
376 wsntw = "http://docs.oasis-open.org/wsn/bw-2"
|
|
377 wsrfbf = "http://docs.oasis-open.org/wsrf/bf-2"
|
|
378 wsrfr = "http://docs.oasis-open.org/wsrf/r-2"
|
|
379 wsrfrw = "http://docs.oasis-open.org/wsrf/rw-2"
|
|
380 wstop = "http://docs.oasis-open.org/wsn/t-1"
|
|
381
|
|
382 # Prefix bindings for WhiteMesa interoperability testing round 2:
|
|
383
|
|
384 i = "http://soapinterop.org/"
|
|
385 s = "http://soapinterop.org/xsd"
|
|
386
|
|
387 # Prefix binding for Amazon Web Services:
|
|
388
|
|
389 aws = "urn:PI/DevCentral/SoapService"
|
|
390
|
|
391 # Prefix binding for Mappoint Web services:
|
|
392
|
|
393 mpt = "http://s.mappoint.net/mappoint-30/"
|