ADB Integration With Axis2

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

Content

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 parameters Selected 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 Name Allowed values Description
r true, false Sets the write flag. If set to true the classes will be written by ADB
w true, false Sets 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.