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.
- 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
- 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_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.
- In the
cybersource.h
header 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