cuba.util
Class AxisUtils

java.lang.Object
  extended by cuba.util.AxisUtils

public class AxisUtils
extends java.lang.Object

AxisUtils.

QS-Note: The axis-utils "wsdl2java" and "java2wsdl" are called via a system.exex because they do system.exit internally. :(

Version:
$Revision: 1.3 $ - $Modtime: $ ($Author: jlr $)
Author:
Jan Wegener, Thomas Kuhlmann

Constructor Summary
AxisUtils()
           
 
Method Summary
static void generateSOAPStubs(CUBAComponent pComponent, java.lang.String pOutputDirectory)
          Generates the Axis stubs for the given component.
static void generateWSDD(CUBAComponent pComponent, java.lang.String serviceName, java.lang.String pOutputDirectory)
          Generates the WSDD-Files for the given component.
static java.lang.String generateWSDL(CUBAComponent pComponent, java.lang.String serviceName, java.lang.String pOutputDirectory, java.lang.String pAxisStyle, java.lang.String pAxisVersion, java.lang.String pInterfaceName)
          Generates a wsdl file for the given component.
protected static java.lang.String getWSDLFileName(java.lang.String serviceName, java.lang.String pOutputDirectory)
          Returns the file-name of the WSDL-file for the given component in the output-directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisUtils

public AxisUtils()
Method Detail

generateWSDL

public static java.lang.String generateWSDL(CUBAComponent pComponent,
                                            java.lang.String serviceName,
                                            java.lang.String pOutputDirectory,
                                            java.lang.String pAxisStyle,
                                            java.lang.String pAxisVersion,
                                            java.lang.String pInterfaceName)
                                     throws GeneratorException
Generates a wsdl file for the given component. The WSDL-file is written to the given output-directory (without adding a META-INF - sub-directory).

Parameters:
pComponent - component to generate wsdl for
pOutputDirectory - Output-directory for generated WSDL
pAxisStyle - Axis-Style
pAxisVersion - Axis-version
pInterfaceName - Full-qualified class-name of the java-interface, if null, the external component-interface is used.
Returns:
The name of the generated WSDL file
Throws:
GeneratorException

getWSDLFileName

protected static java.lang.String getWSDLFileName(java.lang.String serviceName,
                                                  java.lang.String pOutputDirectory)
Returns the file-name of the WSDL-file for the given component in the output-directory.


generateWSDD

public static void generateWSDD(CUBAComponent pComponent,
                                java.lang.String serviceName,
                                java.lang.String pOutputDirectory)
                         throws GeneratorException
Generates the WSDD-Files for the given component. The files emitted by the WSDL2Java tool are written into a temporary directory named "TEMPORARY" and then only the generated "*WSDD-files" are moved to the output-directory.

Parameters:
pComponent - Component to generate WSDD-files for
pOutputDirectory - Output-directory for WSDD-files
Throws:
GeneratorException

generateSOAPStubs

public static void generateSOAPStubs(CUBAComponent pComponent,
                                     java.lang.String pOutputDirectory)
                              throws GeneratorException
Generates the Axis stubs for the given component.
The following files are generated: The files emitted by the WSDL2Java tool are written into a temporary directory named "TEMPORARY" and then only the relevant files are moved to the output-directory.

Note: make sure no such directory exists in the output directory.

Parameters:
pComponent - Component to generate stubs for
pOutputDirectory - Output-directory for stub files
Throws:
GeneratorException