| <html> |
| <head> |
| <meta http-equiv="content-type" content=""> |
| <title></title> |
| </head> |
| |
| <body> |
| <h1>ADB Integration With Axis2</h1> |
| |
| <h2>Introduction</h2> |
| |
| <p>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 |
| (<strong>org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension</strong>) |
| and can be found in the extensions list of the codegen-config.properties |
| file.</p> |
| |
| <h2>Selection of Generation Modes for ADB</h2> |
| |
| <p>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.</p> |
| |
| <table border="1"> |
| <caption></caption> |
| <tbody> |
| <tr> |
| <td><strong>User parameters</strong></td> |
| <td><strong>Selected code generation parameters</strong></td> |
| </tr> |
| <tr> |
| <td>None (no other parameter than the mandatory ones)</td> |
| <td>wrapClasses=false,writeClasses=false</td> |
| </tr> |
| <tr> |
| <td>-ss (server side)</td> |
| <td>wrapClasses=false,writeClasses=true</td> |
| </tr> |
| </tbody> |
| </table> |
| |
| <p>If the users want to override these settings manually, they need to use |
| the following parameters with the command line (prefixed with -E)</p> |
| |
| <table border="1"> |
| <caption></caption> |
| <tbody> |
| <tr> |
| <td><strong>Parameter Name</strong></td> |
| <td><strong>Allowed values</strong></td> |
| <td><strong>Description</strong></td> |
| </tr> |
| <tr> |
| <td>r</td> |
| <td>true, false</td> |
| <td>Sets the write flag. If set to true the classes will be written by |
| ADB</td> |
| </tr> |
| <tr> |
| <td>w</td> |
| <td>true, false</td> |
| <td>Sets the packing flag. if true the classes will be packed.</td> |
| </tr> |
| </tbody> |
| </table> |
| |
| <p></p> |
| |
| <p>Note that these parameters have no relevant long names and MUST be |
| prefixed with a -E to be processed bt the code generator. For example</p> |
| <pre>WSDL2Java .... -Er true</pre> |
| |
| <h2>Things to Remember</h2> |
| <ol> |
| <li>SimpleDBExtension is made to process requests only when the databinding |
| framework is specified as ADB (using the switch -d adb )</li> |
| </ol> |
| <hr> |
| </body> |
| </html> |