Home > Constructing SOAP with C++ and gSOAP 2.7.9d for Mac OS X


Constructing SOAP with C++ and gSOAP 2.7.9d for Mac OS X

This section describes how to construct SOAP messages to process transactions with CyberSource.

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

Software Tested Description
Mac OS X Operating system version tested.
gSOAP 2.7.9d SOAP toolkit

Download and unzip the latest Mac OS X package from http://sourceforge.net/projects/gsoap2/

openssl 0.9.7 OpenSSL version that is part of Mac OS X.
gcc 4.0.1 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 to replace the generic values of the variables with your own values.