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.
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:
16
# Type bindings can by provided to bind XML schema types to C/C++ types
18
# Type bindings are of the form:
19
# prefix__type = declaration | use | ptr-use
20
# where 'declaration' introduces the type in the header file, 'use'
21
# specifies how the type is used directly, 'ptr-use' specifies how the
22
# type is used as a pointer type.
24
# xsd__string = | char* | char*
25
# After enabling this line, all XSD strings will be mapped to char*. Note
26
# that the 'declaration' part is empty in this case.
28
# Member data and functions can be provided to extend a generated struct
30
# Class and struct extensions are of the form:
31
# prefix__type = $ member-declaration
32
# For example, to add a constructor and destructor to class myns__record:
33
# myns__record = $ myns__record();
34
# myns__record = $ ~myns__record();
36
# Any other material to be included in the generated header file can be
37
# provided by enclosing the text within brackets [ and ]. Brackets MUST
38
# appear at the start of a new line.
39
# For example, to include a note:
41
#// TODO: Don't forget to bind the namespace prefixes!
43
# This comment appears as the first line in the generated header file.
45
#-------------------------------------------------------------------------------
46
#gSOAP XML Web services tools
47
#Copyright (C) 2004-2005, Robert van Engelen, Genivia Inc. All Rights Reserved.
48
#This software is released under one of the following two licenses:
49
#GPL or Genivia's license for commercial use.
50
#-------------------------------------------------------------------------------
53
#This program is free software; you can redistribute it and/or modify it under
54
#the terms of the GNU General Public License as published by the Free Software
55
#Foundation; either version 2 of the License, or (at your option) any later
58
#This program is distributed in the hope that it will be useful, but WITHOUT ANY
59
#WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
60
#PARTICULAR PURPOSE. See the GNU General Public License for more details.
62
#You should have received a copy of the GNU General Public License along with
63
#this program; if not, write to the Free Software Foundation, Inc., 59 Temple
64
#Place, Suite 330, Boston, MA 02111-1307 USA
66
#Author contact information:
67
#engelen@genivia.com / engelen@acm.org
68
#-------------------------------------------------------------------------------
69
#A commercial use license is available from Genivia, Inc., contact@genivia.com
70
#-------------------------------------------------------------------------------
73
// Reminder: Modify typemap.dat to customize the header file generated by wsdl2h
76
# To use struct tm instead of time_t for xsd:dateTime:
78
# xsd__dateTime = #import "custom/struct_tm.h" | xsd__dateTime
80
# To use struct timeval with usec precision xsd:dateTime:
82
# xsd__dateTime = #import "custom/struct_timeval.h" | xsd__dateTime
84
# For WhiteMesa interoperability testing round 2:
86
i = "http://soapinterop.org/"
87
s = "http://soapinterop.org/xsd"
89
# Amazon Web Services:
91
aws = "urn:PI/DevCentral/SoapService"
93
# Mappoint Web services:
95
mpt = "http://s.mappoint.net/mappoint-30/"
97
# MTOM xop and xmime are imported from xop.h, xmime.h, and xmlmime.h:
98
# Note: changed xmlmime to xmime to avoid other MTOM tools from
99
# complaining that 'xml' is reserved.
101
xop = <http://www.w3.org/2004/08/xop/include>
102
xmime = <http://www.w3.org/2004/06/xmlmime>
103
xmime4 = <http://www.w3.org/2004/11/xmlmime>
104
xmime5 = <http://www.w3.org/2005/05/xmlmime>
106
# xop:Include is imported from xop.h and redefined as _xop__Include:
108
xop__Include = #import "xop.h" | _xop__Include
110
# xmime/xmlmime:contentType attribute is a string:
112
_xmime__contentType = | char* | char*
113
_xmime4__contentType = | char* | char*
114
_xmime5__contentType = | char* | char*
116
# WS-Addressing (2003, 2004, and 2005 schemas)
117
# See import/wsa.h, import/wsa3.h etc for definitions and code examples
118
# The API is defined in plugin/wsaapi.c, plugin/wsaapi3.c, etc.
120
wsa = <http://schemas.xmlsoap.org/ws/2004/08/addressing>
121
wsa3 = <http://schemas.xmlsoap.org/ws/2003/03/addressing>
122
wsa4 = <http://schemas.xmlsoap.org/ws/2004/03/addressing>
123
wsa5 = <http://www.w3.org/2005/08/addressing>
127
wsp = <http://schemas.xmlsoap.org/ws/2004/09/policy>
129
# wsse 2004 and old wsse 2002 schema
131
wsse = <http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd>
132
wsse2 = <http://schemas.xmlsoap.org/ws/2002/12/secext>
136
wsu = <http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd>
139
_wsu__Created = | time_t
140
_wsu__Expires = | time_t
142
wsu__AttributedDateTime = | time_t
143
wsu__AttributedURI = | char*
145
# Bindings for ds and xenc for WS-Security protocols:
147
ds = <http://www.w3.org/2000/09/xmldsig#>
148
xenc = <http://www.w3.org/2001/04/xmlenc#>
152
xlink = <http://www.w3.org/1999/xlink>
154
_xlink__actuate = | char*
155
_xlink__arcrole = | char*
156
_xlink__from = | char*
157
_xlink__href = | char*
158
_xlink__label = | char*
159
_xlink__role = | char*
160
_xlink__show = | char*
162
_xlink__title = | char*
163
_xlink__type = | char*
167
wsrp = <http://schemas.xmlsoap.org/rp/>
169
# Remember: type bindings are given on a single line.
170
# Example XML schema and C/C++ type bindings:
174
# With SOAP encoded arrays, the SOAP-ENC:arrayType attribute is defined
175
# but we really don't need it because we never use it
177
SOAP_ENC__arrayType = | char* | char*
179
# To use regular char* strings instead of std::string, use:
181
# xsd__string = | char* | char*
183
# To use regular char* strings serialized with xsi:type attributes, use:
185
# xsd__string = typedef char *xsd__string; | xsd__string | xsd__string
189
# xsd__boolean = enum xsd__boolean { false_, true_ }; | enum xsd__boolean
191
# xsd__base64Binary = class xsd__base64Binary { unsigned char *__ptr; int __size; }; | xsd__base64Binary | xsd__base64Binary