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


Generating the Windows Client Code

The pre-built wsdl2h tool does not support SSL, so you cannot point the tool directly to https://ics2wstesta.ic3.com or https://ics2wsa.ic3.com or in India https://ics2wsa.in.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 or in India https://ics2wsa.in.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

    The gsoap_directory is the directory from which you extracted gSoap. N.NN is the version number of the WSDL file that you downloaded. This script creates the cybersource.h header file. You may change the name of the file; however, the following steps refer to the file as cybersource.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 the cybersource.h header 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