ADB Integration With Axis2

This document will assist you to write an extension using the integrator in order to integrate ADB with Axis2.

Introduction

ADB Integration with Axis2 is simple and straightforward. Given the extension mechanism of the Axis2 code generator, the obvious choice for the integrator is to write an extension. The extension that is added to support ADB is the SimpleDBExtension (org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension) and can be found in the extensions list of the codegen-config.properties file.

Selection of Generation Modes for ADB

The extension sets the options for the code generator via the CompilerOptions, depending on the users settings. The following table summarizes the use of options. Please refer the ADB-How to document for the different generation modes and their descriptions.

User parametersSelected code generation parameters
None (no other parameter than the mandatory ones)wrapClasses=false,writeClasses=false
-ss (server side)wrapClasses=false,writeClasses=true
-u (unwrap classes)wrapClasses=false,writeClasses=true

If the users want to override these settings manually, they need to use the following parameters in the command line (prefixed with -E)

Parameter NameAllowed valuesDescription
rtrue, falseSets the write flag. If set to true the classes will be written by ADB
wtrue, falseSets the packing flag. if true the classes will be packed.

Note that these parameters have no relevant long names and MUST be prefixed with a -E to be processed by the code generator. For example

WSDL2Java .... -Er true

Things to Remember

  1. SimpleDBExtension is made to process requests only when the databinding framework is specified as ADB (using the switch -d adb ). In the most recent release, the default has been set as ADB and hence if the -d option is missing then the databinding framework will be ADB.