Compiling OAS SOAP Java Wrappers with ant (for OAS 3.18 and below)

So you are programming in Java and heard that OneSpan has an SDK that already has a few bells and whistles out of the box. You download the Authentication Server SDK zip file and extracted it but have no idea what to do with the artifacts.

Let's take a look at the structure of the SDK:

IDENTIKEY_Authentication_Server_SDK_3.18
└─── ASP.Net
└─── doc
└─── dpx
└─── Java
     └─── IdentikeySampleSite
     └─── IdentikeyWrapper
     	  └─── conf
          └─── src
          └─── build.xml
     └─── lib
     └─── build.xml
└─── sample_auth_engine
└─── wsdl
└─── Release Notes - IDENTIKEY Authentication Server SDK 3.18.zip

Notice the nested build.xml file inside of the IdentikeyWrapper folder, this is an ant build file which will create a jar from the sources in the src directory. Before doing anything else, we need to download and configure Apache Ant.

Let's now open a terminal/command prompt and navigate into the IdentikeyWrapper folder:

cd IDENTIKEY_Authentication_Server_SDK_3.18/Java/src/IdentikeyWrapper
cd IDENTIKEY_Authentication_Server_SDK_3.18\Java\src\IdentikeyWrapper

Now let's build by calling the package-jar target (omitting the output):

ant package-jar
.
.
BUILD SUCCESSFUL
Total time: 39 seconds

Now when we look at the folder structure we will see that we have a build folder:

IDENTIKEY_Authentication_Server_SDK_3.18
└─── Java
     └─── IdentikeySampleSite
     └─── IdentikeyWrapper
     	  └─── build
               └─── doc
               └─── lib
                    └─── IdentikeySOAPClient.jar
                    └─── IdentikeyWrapper.jar
               └─── soapclient
               └─── wrapper
     	  └─── conf
          └─── src
          └─── build.xml
     └─── lib
     └─── build.xml

Inside the build folder we find the SOAP client and wrappers which we can now use to integrate with OAS.

Show Comments