Commit eb3b5e692de3792fc9edff6818772573708590c8
1 parent
d1a0379d
Exists in
master
namespace mapping
Showing
1 changed file
with
399 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,399 @@ |
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 | +ns1 = "http://cdpp3dview" | |
104 | +ns3 = "http://cdpp3dview/params" | |
105 | +ns4 = "http://cdpp3dview/types" | |
106 | + | |
107 | + | |
108 | + | |
109 | +# Remember: type bindings are given on a single line (use \ to continue | |
110 | +# with the next line). Here is an example binding for the XSD int type | |
111 | +# that maps to an 'int': | |
112 | +# xsd__int = | int | |
113 | + | |
114 | +# To use regular char* strings instead of std::string, use: | |
115 | +# xsd__string = | char* | char* | |
116 | + | |
117 | +# For char* serialized with xsi:type when using soapcpp2 option -t, use: | |
118 | +# xsd__string = typedef char *xsd__string; | xsd__string | xsd__string | |
119 | + | |
120 | +# More examples: | |
121 | +# xsd__boolean = enum xsd__boolean { false_, true_ }; | enum xsd__boolean | |
122 | + | |
123 | +# Uncomment the line below to use struct tm instead of time_t xsd:dateTime | |
124 | +# Must compile and link custom/struct_tm.c with the project | |
125 | +# xsd__dateTime = #import "custom/struct_tm.h" | xsd__dateTime | |
126 | + | |
127 | +# Uncomment the line below to use timeval with usec precision xsd:dateTime | |
128 | +# Must compile and link custom/struct_timeval.c with the project | |
129 | +# xsd__dateTime = #import "custom/struct_timeval.h" | xsd__dateTime | |
130 | + | |
131 | +# When compiling WITH_LEAN there is no hexBinary serializer. You can | |
132 | +# remap the hexBinary type to a string as follows: | |
133 | +# xsd__hexBinary = | char* | |
134 | + | |
135 | +# Uncomment the line below to use LONG64 int for xsd:duration | |
136 | +# (with high ms precision) | |
137 | +# Must compile and link custom/duration.c with the project | |
138 | +xsd__duration = #import "custom/duration.h" | xsd__duration | |
139 | + | |
140 | +# SOAP-ENV mapping (note: SOAP Body content is mapped to an XML string) | |
141 | + | |
142 | +SOAP_ENV__Envelope = struct SOAP_ENV__Envelope { struct SOAP_ENV__Header *SOAP_ENV__Header; _XML SOAP_ENV__Body; }; | struct SOAP_ENV__Envelope | |
143 | +SOAP_ENV__Header = | struct SOAP_ENV__Header | |
144 | +SOAP_ENV__Fault = | struct SOAP_ENV__Fault | |
145 | +SOAP_ENV__Detail = | struct SOAP_ENV__Detail | |
146 | +SOAP_ENV__Code = | struct SOAP_ENV__Code | |
147 | +SOAP_ENV__Subcode = | struct SOAP_ENV__Subcode | |
148 | +SOAP_ENV__Reason = | struct SOAP_ENV__Reason | |
149 | + | |
150 | +# Temporary URI | |
151 | + | |
152 | +tempuri = "http://tempuri.org/" | |
153 | + | |
154 | +# Empty URI | |
155 | + | |
156 | +empty = "" | |
157 | + | |
158 | +# .NET WCF DataContract Serialization Schema | |
159 | + | |
160 | +ser = <http://schemas.microsoft.com/2003/10/Serialization/> | |
161 | +arr = "http://schemas.microsoft.com/2003/10/Serialization/Arrays" | |
162 | + | |
163 | +# .NET WCF DataContract Serialization Schema remappings | |
164 | + | |
165 | +_ser__anyURI == xsd__anyURI | |
166 | +_ser__boolean == xsd__boolean | |
167 | +_ser__base64Binary == xsd__base64Binary | |
168 | +_ser__byte == xsd__byte | |
169 | +_ser__dateTime == xsd__dateTime | |
170 | +_ser__decimal == xsd__decimal | |
171 | +_ser__double == xsd__double | |
172 | +_ser__float == xsd__float | |
173 | +_ser__int == xsd__int | |
174 | +_ser__long == xsd__long | |
175 | +_ser__QName == xsd__QName | |
176 | +_ser__short == xsd__short | |
177 | +_ser__string == xsd__string | |
178 | +_ser__unsignedByte == xsd__unsignedByte | |
179 | +_ser__unsignedInt == xsd__unsignedInt | |
180 | +_ser__unsignedLong == xsd__unsignedLong | |
181 | +_ser__unsignedShort == xsd__unsignedShort | |
182 | + | |
183 | +# .NET WCF ser:anyType represents an object (see import/ser.h): | |
184 | + | |
185 | +_ser__anyType = | struct __ser__anyType | struct __ser__anyType | |
186 | + | |
187 | +# .NET WCF ser:char element and type represents a Unicode character | |
188 | + | |
189 | +_ser__char = | int | |
190 | +ser__char = | int | |
191 | + | |
192 | +# .NET WCF ser:duration element and type maps to xsd:duration | |
193 | + | |
194 | +_ser__duration == xsd__duration | |
195 | +ser__duration == xsd__duration | |
196 | + | |
197 | +# .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}" | |
198 | + | |
199 | +_ser__guid = | char* | |
200 | +ser__guid = | char* | |
201 | + | |
202 | +# .NET WCF samples | |
203 | + | |
204 | +mssamh = "http://Microsoft.Samples.Http" | |
205 | +mssamhi = "http://Microsoft.Samples.Http/Imports" | |
206 | + | |
207 | +mssamt = "http://Microsoft.Samples.TransportSecurity" | |
208 | +mssamti = "http://Microsoft.Samples.TransportSecurity/Imports" | |
209 | + | |
210 | +mssamm = "http://Microsoft.Samples.MessageSecurity" | |
211 | +mssammi = "http://Microsoft.Samples.MessageSecurity/Imports" | |
212 | + | |
213 | +mssadh = "http://Microsoft.Samples.DualHttp" | |
214 | +mssadhi = "http://Microsoft.Samples.DualHttp/Imports" | |
215 | + | |
216 | +# MTOM xop and xmime are imported from xop.h, xmime.h, and xmlmime.h: | |
217 | +# Note: changed xmlmime to xmime to avoid other MTOM tools from | |
218 | +# complaining that 'xml' is reserved. | |
219 | + | |
220 | +xop = <http://www.w3.org/2004/08/xop/include> | |
221 | +xmime = <http://www.w3.org/2004/06/xmlmime> | |
222 | +xmime4 = <http://www.w3.org/2004/11/xmlmime> | |
223 | +xmime5 = <http://www.w3.org/2005/05/xmlmime> | |
224 | + | |
225 | +# xop:Include is imported from xop.h and redefined as _xop__Include: | |
226 | + | |
227 | +xop__Include = #import "xop.h" | _xop__Include | |
228 | + | |
229 | +# xmime/xmlmime:contentType attribute is a string: | |
230 | + | |
231 | +_xmime__contentType = | char* | char* | |
232 | +_xmime4__contentType = | char* | char* | |
233 | +_xmime5__contentType = | char* | char* | |
234 | + | |
235 | +# exc-c14n | |
236 | + | |
237 | +c14n = <http://www.w3.org/2001/10/xml-exc-c14n#> | |
238 | + | |
239 | +# WS-Addressing (2003, 2004, and 2005 schemas) | |
240 | +# See import/wsa.h, import/wsa3.h etc for definitions and code examples | |
241 | +# The API is defined in plugin/wsaapi.c, plugin/wsaapi3.c, etc. | |
242 | + | |
243 | +wsa = <http://schemas.xmlsoap.org/ws/2004/08/addressing> | |
244 | +wsa3 = <http://schemas.xmlsoap.org/ws/2003/03/addressing> | |
245 | +wsa4 = <http://schemas.xmlsoap.org/ws/2004/03/addressing> | |
246 | +wsa5 = <http://www.w3.org/2005/08/addressing> | |
247 | + | |
248 | +# The types below should not use pointers, so we add a 3rd column: | |
249 | + | |
250 | +_wsa__Action = | | _wsa__Action | |
251 | +_wsa__MessageID = | | _wsa__MessageID | |
252 | +_wsa__To = | | _wsa__To | |
253 | + | |
254 | +_wsa3__Action = | | _wsa3__Action | |
255 | +_wsa3__MessageID = | | _wsa3__MessageID | |
256 | +_wsa3__To = | | _wsa3__To | |
257 | + | |
258 | +_wsa4__Action = | | _wsa4__Action | |
259 | +_wsa4__MessageID = | | _wsa4__MessageID | |
260 | +_wsa4__To = | | _wsa4__To | |
261 | + | |
262 | +_wsa5__Action = | | _wsa5__Action | |
263 | +_wsa5__MessageID = | | _wsa5__MessageID | |
264 | +_wsa5__To = | | _wsa5__To | |
265 | + | |
266 | +# WS-ReliableMessaging 1.1 and 1.0 (and obsolete WS-Reliability 2004) | |
267 | + | |
268 | +wsrm = <http://docs.oasis-open.org/ws-rx/wsrm/200702> | |
269 | +wsrm5 = <http://schemas.xmlsoap.org/ws/2005/02/rm> | |
270 | +wsrm4 = <http://docs.oasis-open.org/wsrm/2004/06/ws-reliability-1.1.xsd> | |
271 | + | |
272 | +# WS-Discovery 1.1 and 1.0 | |
273 | + | |
274 | +wsdd = <http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01> | |
275 | +wsdd10 = <http://schemas.xmlsoap.org/ws/2005/04/discovery> | |
276 | + | |
277 | +wsdd10__HelloType = | wsdd__HelloType | |
278 | +wsdd10__ByeType = | wsdd__ByeType | |
279 | +wsdd10__ProbeType = | wsdd__ProbeType | |
280 | +wsdd10__ProbeMatchesType = | wsdd__ProbeMatchesType | |
281 | +wsdd10__ProbeMatchType = | wsdd__ProbeMatchType | |
282 | +wsdd10__ResolveType = | wsdd__ResolveType | |
283 | +wsdd10__ResolveMatchesType = | wsdd__ResolveMatchesType | |
284 | +wsdd10__ResolveMatchType = | wsdd__ResolveMatchType | |
285 | +wsdd10__ScopesType = | wsdd__ScopesType | |
286 | +wsdd10__SecurityType = | wsdd__SecurityType | |
287 | +wsdd10__SigType = | wsdd__SigType | |
288 | +wsdd10__AppSequenceType = | wsdd__AppSequenceType | |
289 | + | |
290 | +# WS-Policy | |
291 | + | |
292 | +wsp = <http://schemas.xmlsoap.org/ws/2004/09/policy> | |
293 | + | |
294 | +# WS-SecureConversation | |
295 | + | |
296 | +wsc = <http://schemas.xmlsoap.org/ws/2005/02/sc> | |
297 | + | |
298 | +# WS-Trust 1.0 | |
299 | + | |
300 | +wst = <http://schemas.xmlsoap.org/ws/2005/02/trust> | |
301 | + | |
302 | +# WS-Security wsse 2004 v1.0 and 1.1 and old wsse 2002 schema | |
303 | + | |
304 | +wsse11 = <http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd> | |
305 | +wsse = <http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd> | |
306 | +wsse2 = <http://schemas.xmlsoap.org/ws/2002/12/secext> | |
307 | + | |
308 | +_wsse2__Security == _wsse__Security | |
309 | +wsse2__Security == wsse__Security | |
310 | + | |
311 | +# wsu 2004 | |
312 | + | |
313 | +wsu = <http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd> | |
314 | + | |
315 | +_wsu__Id = | char* | |
316 | +_wsu__Created = | time_t | |
317 | +_wsu__Expires = | time_t | |
318 | + | |
319 | +wsu__AttributedDateTime = | time_t | |
320 | +wsu__AttributedURI = | char* | |
321 | + | |
322 | +# Bindings for ds and xenc for WS-Security protocols: | |
323 | + | |
324 | +ds = <http://www.w3.org/2000/09/xmldsig#> | |
325 | +xenc = <http://www.w3.org/2001/04/xmlenc#> | |
326 | + | |
327 | +# xlink | |
328 | + | |
329 | +xlink = <http://www.w3.org/1999/xlink> | |
330 | + | |
331 | +_xlink__actuate = | char* | |
332 | +_xlink__arcrole = | char* | |
333 | +_xlink__from = | char* | |
334 | +_xlink__href = | char* | |
335 | +_xlink__label = | char* | |
336 | +_xlink__role = | char* | |
337 | +_xlink__show = | char* | |
338 | +_xlink__to = | char* | |
339 | +_xlink__title = | char* | |
340 | +_xlink__type = | char* | |
341 | + | |
342 | +# wsrp routing protocol (deprecated) | |
343 | + | |
344 | +wsrp = <http://schemas.xmlsoap.org/rp/> | |
345 | + | |
346 | +# ONVIF recommended prefixes as per 8/20/12 | |
347 | +# http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl | |
348 | +# http://www.onvif.org/onvif/ver10/event/wsdl/event.wsdl | |
349 | +# http://www.onvif.org/onvif/ver10/display.wsdl | |
350 | +# http://www.onvif.org/onvif/ver10/deviceio.wsdl | |
351 | +# http://www.onvif.org/onvif/ver20/imaging/wsdl/imaging.wsdl | |
352 | +# http://www.onvif.org/onvif/ver10/media/wsdl/media.wsdl | |
353 | +# http://www.onvif.org/onvif/ver20/ptz/wsdl/ptz.wsdl | |
354 | +# http://www.onvif.org/onvif/ver10/receiver.wsdl | |
355 | +# http://www.onvif.org/onvif/ver10/recording.wsdl | |
356 | +# http://www.onvif.org/onvif/ver10/search.wsdl | |
357 | +# http://www.onvif.org/onvif/ver10/network/wsdl/remotediscovery.wsdl | |
358 | +# http://www.onvif.org/onvif/ver10/replay.wsdl | |
359 | +# http://www.onvif.org/onvif/ver20/analytics/wsdl/analytics.wsdl | |
360 | +# http://www.onvif.org/onvif/ver10/analyticsdevice.wsdl | |
361 | +# http://www.onvif.org/onvif/ver10/schema/onvif.xsd | |
362 | + | |
363 | +tds = "http://www.onvif.org/ver10/device/wsdl" | |
364 | +tev = "http://www.onvif.org/ver10/events/wsdl" | |
365 | +tls = "http://www.onvif.org/ver10/display/wsdl" | |
366 | +tmd = "http://www.onvif.org/ver10/deviceIO/wsdl" | |
367 | +timg = "http://www.onvif.org/ver20/imaging/wsdl" | |
368 | +trt = "http://www.onvif.org/ver10/media/wsdl" | |
369 | +tptz = "http://www.onvif.org/ver20/ptz/wsdl" | |
370 | +trv = "http://www.onvif.org/ver10/receiver/wsdl" | |
371 | +trc = "http://www.onvif.org/ver10/recording/wsdl" | |
372 | +tse = "http://www.onvif.org/ver10/search/wsdl" | |
373 | +trp = "http://www.onvif.org/ver10/replay/wsdl" | |
374 | +tan = "http://www.onvif.org/ver20/analytics/wsdl" | |
375 | +tad = "http://www.onvif.org/ver10/analyticsdevice/wsdl" | |
376 | +tdn = "http://www.onvif.org/ver10/network/wsdl" | |
377 | +tt = "http://www.onvif.org/ver10/schema" | |
378 | + | |
379 | +# OASIS recommended prefixes | |
380 | + | |
381 | +wsnt = "http://docs.oasis-open.org/wsn/b-2" | |
382 | +wsntw = "http://docs.oasis-open.org/wsn/bw-2" | |
383 | +wsrfbf = "http://docs.oasis-open.org/wsrf/bf-2" | |
384 | +wsrfr = "http://docs.oasis-open.org/wsrf/r-2" | |
385 | +wsrfrw = "http://docs.oasis-open.org/wsrf/rw-2" | |
386 | +wstop = "http://docs.oasis-open.org/wsn/t-1" | |
387 | + | |
388 | +# Prefix bindings for WhiteMesa interoperability testing round 2: | |
389 | + | |
390 | +i = "http://soapinterop.org/" | |
391 | +s = "http://soapinterop.org/xsd" | |
392 | + | |
393 | +# Prefix binding for Amazon Web Services: | |
394 | + | |
395 | +aws = "urn:PI/DevCentral/SoapService" | |
396 | + | |
397 | +# Prefix binding for Mappoint Web services: | |
398 | + | |
399 | +mpt = "http://s.mappoint.net/mappoint-30/" | ... | ... |