Home > Constructing SOAP with C++ and gSOAP 2.7.9c for Windows > Generating the Windows Client Code


Generating the Windows Client Code

The pre-builtwsdl2htool does not support SSL, so you cannot point the tool directly tohttps://ics2wstesta.ic3.comorhttps://ics2wsa.ic3.com.
  1. Download the latest WSDL and XSD files to the same directory from the following URL:https://ics2wsa.ic3.com/commerce/1.x/transactionProcessor
  2. Save the files under the following names:

    CyberSourceTransaction_1.26.wsdl

    CyberSourceTransaction_1.26.xsd

  3. To generate the header file, run the following script in the directory to which you downloaded the WSDL and XSD files:

    gsoap_directory\bin\wsdl2h -t gsoap_directory\WS\WS-typemap.dat -s -o cybersource.h CyberSourceTransaction_N.NN.wsdl

    Thegsoap_directoryis the directory from which you extracted gSoap.N.NNis the version number of the WSDL file that you downloaded. This script creates thecybersource.hheader file. You may change the name of the file; however, the following steps refer to the file ascybersource.h.

    While you can safely ignore any warning messages, be sure that no two line items in your requests have the same ID.

  4. In thecybersource.hheader file, add the following line to the Import section:

    #import "WS-Header.h"

  5. To generate the client source code, run this script:

    gsoap_directory\bin\soapcpp2 -C -Igsoap_directory\import cybersource.h