1
The gSOAP WSDL parser and importer
5
The gSOAP WSDL parser converts WSDL into a gSOAP header file for processing
6
with the gSOAP soapcpp2 compiler to generate client stubs and server skeletons.
10
$ wsdl2h -o Amazon.h http://soap.amazon.com/schemas/AmazonWebServices.wsdl
14
The generated Amazon.h includes the definitions of data types and service
15
operations of the Amazon Web service. To develop a C++ client application, you
16
can use the generated 'soapAmazonSearchBindingProxy.h' class and
17
'AmazonSearchBinding.nsmap' XML namespace table to access the Amazon Web
18
service. Both need to be '#include'-d in your source. Then compile and link the
19
soapC.cpp, soapClient.cpp, and stdsoap2.cpp sources to complete the build.
20
More information can be found in the gSOAP documentation.
22
When parsing a WSDL, the output file name is the WSDL input file name with
23
extension '.h' instead of '.wsdl'. When an input file is absent or a WSDL file
24
from a Web location is accessed, the header output will be produced on the
25
standard output. An input file may also contain a schema and will be handled as
30
wsdl2h reads from standard input or the file name provided at the command line:
32
wsdl2h [options] [-o outfile.h] [infile.wsdl]
34
Valid input file formats are .wsdl and .xsd (schema) files.
38
The output file is a gSOAP-formatted header file. The header file syntax is
39
augmented with annotations reflecting WSDL and schema-specific bindings and
40
validation constraints.
42
We suggest the use of Doxygen (www.doxygen.org) to produce documented for the
43
generated header file. However, we STRONGLY recommend user to inspect the
44
generated header file first for warnings and other annotations indicating
47
Note that Doxygen's license model does not infinge on your ownership of the
48
gSOAP source code output when you purchased a commercial license.
52
-c generate pure C header file code
53
-e enum names will not be prefixed
54
-f generate flat C++ class hierarchy for schema extensions
55
-i don't import schemas, but treat them as modules (using -m below)
56
-m create modules for separate compilation
57
-nname use name as the base namespace prefix name instead of 'ns'
59
-p create polymorphic types with C++ inheritance with base xsd__anyType
61
connect via proxy host and port
62
-s do not generate STL code (no std::string and no std::vector)
63
-tfile use type map file instead of the default file typemap.dat
69
See soapdoc2.pdf for documentation.
73
The 'typemap.dat' file can be used to provide custom type mappings for binding
74
XML schema types to C and/or C++ types. The WSDL parser 'wsdl2h' can be used
75
without the 'typemap.dat' file, because and internal table is used to associate
76
XML schema types to C or C++ types (for C, use the -c option).
78
The 'typemap.dat' file also allows you to change the generation of the 'ns1',
79
'ns2', 'ns3', ... namespace prefixes with custom names.
83
Type 'make' in the 'wsdl' directory to build wsdl2h. You must first install the
84
gSOAP package and build the gSOAP compiler soapcpp2 to rebuild the wsdl2h WSDL
89
You must build the WSDL parser with 'make secure' to build an SSL-enabled
90
version of wsdl2h that can access HTTPS secure sites.
94
The gSOAP WSDL parser 'wsdl2h' and source code are released under the GPL.
95
See gpl.txt for more details. A commercial license is available from Genivia.
96
Please contact Genivia (contact@genivia.com) for more details.
100
gSOAP XML Web services tools
101
Copyright (C) 2001-2004, Robert van Engelen, Genivia, Inc. All Rights Reserved.