Home > Constructing SOAP with C++ and gSOAP 2.7.9c for Windows


Constructing SOAP with C++ and gSOAP 2.7.9c for Windows

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
Windows XP Pro with SP2 Operating system version tested.
gSOAP 2.7.9c Soap toolkit. Download and unzip the latest win32 ZIP file from http://sourceforge.net/projects/gsoap2/
OpenSSL 0.9.8d You may use the pre-built package available from http://www.slproweb.com/products/Win32OpenSSL.html.

If you do, before installing the software, make a copy of libeay32.dll and ssleay32.dll, which are located in c:\windows\system32. Otherwise, these files are overwritten during installation.

Microsoft Visual Studio 2005 Development environment tested.

Test the client application with the sample code files available 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.