The pre-builtwsdl2htool
does not support SSL, so you cannot point the tool directly tohttps://ics2wstesta.ic3.comorhttps://ics2wsa.ic3.com.
- Download the latest WSDL and XSD files to the
same directory from the following URL:https://ics2wsa.ic3.com/commerce/1.x/transactionProcessor
- Save the files under the following names:
CyberSourceTransaction_1.26.wsdl
CyberSourceTransaction_1.26.xsd
- 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_directoryis
the directory from which you extracted gSoap.
N.NNis the
version number of the WSDL file that you downloaded. This script
creates the
cybersource.hheader
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.
- In the
cybersource.hheader
file, add the following line to the Import section:
- To generate the client source code, run this script:
gsoap_directory\bin\soapcpp2 -C -Igsoap_directory\import cybersource.h