PS C:\Users\soft\Downloads\gsoap-2.8\gsoap\bin\win32> .\wsdl2h -o calc.h http://www.genivia.com/calc.wsdl
Saving calc.h
** The gSOAP WSDL/WADL/XSD processor for C and C++, wsdl2h release2.8.43
** Copyright (C) 2000-2017 Robert van Engelen, Genivia Inc.
** All Rights Reserved. This product is provided "as is", without any warranty.
** The wsdl2h tool and its generated software are released under the GPL.
** ----------------------------------------------------------------------------
** A commercial use license is available from Genivia Inc., contact@genivia.com
** ----------------------------------------------------------------------------
Cannot openfile"typemap.dat"
Problem reading typemapfile'typemap.dat'.
Using internal type definitions for C++ instead.
Connecting to'http://www.genivia.com/calc.wsdl' to retrieve WSDL/WADL or XSD... connected, receiving...
Done reading 'http://www.genivia.com/calc.wsdl'
To finalize code generation, execute:
> soapcpp2 calc.h
Ortogenerate C++ proxy and service classes:
> soapcpp2 -j calc.h
执行完毕后会在当前目录下面生成一个calc.h的文件。内容如下:
/* calc.h
Generated by wsdl2h 2.8.43 from http://www.genivia.com/calc.wsdl and typemap.dat
2017-02-10 07:34:11 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-2016, Robert van Engelen, Genivia Inc. All Rights Reserved.
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., contact@genivia.com
--------------------------------------------------------------------------------
*/
/** @page page_notes Notes
@note HINTS:
- Run soapcpp2 on calc.h to generate the SOAP/XML processing logic.
Use soapcpp2 -I to specify paths for #import
To build with STL, 'stl.h' is imported from 'import' dir in package.
Use soapcpp2 -j to generate improved proxy and server classes.
Use soapcpp2 -r to generate a report.
- 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.
- Run 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).
- Use wsdl2h -U to map XML names to C++ Unicode identifiers instead of _xNNNN.
- Use wsdl2h -u to disable the generation of unions.
- 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.
@copyright LICENSE:
@verbatim
--------------------------------------------------------------------------------
gSOAP XML Web services tools
Copyright (C) 2000-2017, Robert van Engelen, Genivia Inc. All Rights Reserved.
The wsdl2h tool and its generated software are released under the GPL.
This software is released under the GPL with the additional exemption that
compiling, linking, and/or using OpenSSL is allowed.
--------------------------------------------------------------------------------
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:
engelen@genivia.com / engelen@acm.org
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., contact@genivia.com
--------------------------------------------------------------------------------
@endverbatim
*/
//gsoapopt c++,w
/******************************************************************************\
* ** Definitions ** http://websrv.cs.fsu.edu/~engelen/calc.wsdl ** *
\******************************************************************************/
/******************************************************************************\
* ** $CONTAINER ** std::vector ** *
\******************************************************************************/
template <classT> class std::vector;
/******************************************************************************\
* ** Import ** *
\******************************************************************************/
#import "stl.h" // enable STL containers when used (option -s removes STL dependency)
/******************************************************************************\
* ** 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:
ns1 = "http://websrv.cs.fsu.edu/~engelen/calc.wsdl"
ns2 = "urn:calc"
*/
#define SOAP_NAMESPACE_OF_ns2 "urn:calc"
//gsoap ns2 schema namespace: urn:calc
//gsoap ns2 schema form: unqualified
/******************************************************************************\
* ** Built-in Schema Types and Top-Level Elements and Attributes ** *
\******************************************************************************/
/******************************