Home > Constructing SOAP with C++ and gSOAP 2.7.9e for Linux


Constructing SOAP with C++ and gSOAP 2.7.9e for Linux

This section describes how to construct SOAP messages to process transactions using Linux.

Before starting this process, download and install the required third-party software. These versions were tested:

Software Tested Description
Linux Kernel 2.6 Operating system version tested.
gSOAP 2.7.9e SOAP toolkit. You can download it fromhttp://sourceforge.net/project/showfiles.php?group_id=52781
OpenSSL 0.9.8 Current version of the toolkit implementing SSL.

Most Linux installations already contain this package. If your package does not or if it has an old version, download the source from http://www.openssl.org.

gcc 4.1.2 C/C++ compiler tested.

The sample.cpp file provides the code to process your transactions.

Test the client application with the sample code files from https://github.com/CyberSource/cybersource-soap-toolkit/tree/master/sample_gsoap.

To help understand and use the code, the files contain many comments and a sample card authorization. Before using the files, be sure that you replace the generic values of the variables with your own.

Makefile provides targets to easily create and build the sample client.