J2EE Using Axis2
A QSP customer has graciously shared their guidelines instructions for integrating with the Services Portal through J2EE using Axis2.
Here's a recipe for using Axis 2 1.1.1 w/ Qualcomm:
1. Download and install Axis2 from http://ws.apache.org/axis2/. The current release version (as of 3/21) is 1.1.1. One can easily become confused as Axis1 is still available and supported for production use.
2. Download the WSDL from https://services.omnitracs.com/otsWebWS/services/OTSWebSvcs/wsdl/OTSWebSvcs.wsdl and save it to a file (c:\omnitracs.wsdl or wherever)
3. Generate client stubs. In windows, execute this command:
C:\axis2-1.1.1\bin\wsdl2java.bat -uri c:\qualcomm.wsdl -p com.yourcompany.client -d adb -s -o c:\youroutputdir\client
Here is some sample code for invoking the web service:
|
This code results in a string containing an xml document.
Note that this is not the proper way to use Axis2 with WS-Security. In theory, one should use rampart 1.1 (the Apache WS-Security package), but I had no success in getting this to work. See http://ws.apache.org/axis2/modules/rampart/1_1/security-module.html for details.