soapcpp2 - Man Page

the gSOAP Stub and Skeleton Compiler for C and C++


soapcpp2 [Options] INPUT


Create stubs and client and server code from input INPUT or standard input if INPUT is not specified.



No SOAP, generate REST source code.


Generate SOAP 1.1 source code.


Generate SOAP 1.2 source code.


Require HTTP SOAPAction headers to invoke server-side operations.


Use HTTP SOAPAction with WS-Addressing to invoke server-side operations.


Serialize byte arrays char[N] as string.


Generate client-side source code only.


Generate C source code.


Generate C++ source code (default).


Generate C++ source code optimized for C++11 (compile with -std=c++11).


Generate C++ source code optimized for C++14 (compile with -std=c++14).


Generate C++ source code optimized for C++17 (compile with -std=c++17).


Use path to save files.


Generate extra functions for deep copying.


Generate extra functions for deep deletion.


Generate extra functions for data traversals with callback functions.


Generate SOAP RPC encoding style bindings (also use -1 or -2).


Multiple soapC files, with N serializer definitions per file (N>=10).


Generate XML sample messages in template format for testmsgr.


Display help info and exit.


Use path(s) for #import (paths separated with ':').


Generate C++ service proxies and objects inherited from soap struct.


Generate C++ service proxies and objects that share a soap struct.


Do not generate soapClientLib/soapServerLib.


Generate linkable modules (experimental).


Generate source code for the Matlab(tm) MEX compiler (deprecated).


Use service name to rename service functions and namespace table.


Save files with new prefix name instead of soap.


Use name as the C++ namespace, including custom serializers.


Use name as the C++ namespace, excluding custom serializers.


Generate report.


Generate server-side source code only.


Generate stub and skeleton functions with strict XML validation checks.


Generate server auto-test source code.


Generate source code for fully xsi:type typed SOAP/XML messages.


Uncomment WSDL/schema output by suppressing XML comments.


Display the current version and exit.


Verbose output.


Do not generate WSDL and schema files.


Do not generate sample XML message files.


Include C/C++ type access information in sample XML messages.


Compatibility: Generate old-style C++ service proxies and objects.


Compatibility with 2.7.x: Omit XML output for NULL pointers.


Compatibility up to 2.8.30: _param_N indexing and nillable pointers.


Compatibility up to 2.8.105: char* member defaults, even when omitted.

See Also



This manual page was written by Thomas Wana <>, for the Debian project (but may be used by others).

Referenced By


Juni 27, 2003