This section describes how to construct SOAP messages to process transactions with CyberSource using Apache Axis and WSS4J.
Before starting this process, download and install the required third-party software. CyberSource tested these versions:
Software Tested | Description |
---|---|
|
Operating systems tested |
JDK 1.5 | Java Development Kit |
Apache Axis 1.4 | SOAP toolkit Download and unzip the latest package from http://ws.apache.org/axis |
Apache WSS4J 1.5.1 | WS-Security package Download and unzip the latest package from http://ws.apache.org/wss4 |
Apache XML Security 1.4.0 | XML security package Download the latest
package from http://santuario.apache.org/download.html http://santuario.apache.org/download.html%20and
extract |
activation.jar | JDK JavaBeans Activation Framework add-on that you can download from http://www.oracle.com/technetwork/java/jaf11-139815.html |
mail.jar | JDK Java Mail add-on that you can download from http://java.sun.com/products/javamail/ |
The Sample.java:
sample file
provides the code to process your transactions.
Test the client application with the sample code files available from https://github.com/CyberSource/cybersource-soap-toolkit/tree/master/sample_axis_wss4j
To help understand and use the code, the files contain many comments and a sample card authorization. Before using the files, replace the generic values of the variables with your own.
The SamplePWCallback.java:
sample
file is a Password Callback Handler, which provides the password
to WSS4J.
The SampleDeploy.wsdd:
file
is a sample deployment descriptor file used by WSS4J.