org.apache.axis.wsdl

Class Java2WSDL


public class Java2WSDL
extends java.lang.Object

Command line interface to the java2wsdl utility
Authors:
Ravi Kumar (rkumar@borland.com)
Rich Scheuerle (scheu@us.ibm.com)

Field Summary

protected static int
BINDING_NAME_OPT
Field BINDING_NAME_OPT
protected static int
CLASSPATH_OPT
protected static int
DEPLOY_OPT
Field DEPLOY_OPT
protected static int
EXTRA_CLASSES_OPT
Field EXTRA_CLASSES_OPT
protected static int
HELP_OPT
Field HELP_OPT
protected static int
IMPL_CLASS_OPT
Field IMPL_CLASS_OPT
protected static int
IMPORT_SCHEMA_OPT
Field IMPORT_SCHEMA_OPT
protected static int
INHERITED_CLASS_OPT
Field INHERITED_CLASS_OPT
protected static int
INPUT_OPT
Field INPUT_OPT
protected static int
LOCATION_IMPORT_OPT
Field LOCATION_IMPORT_OPT
protected static int
LOCATION_OPT
Field LOCATION_OPT
protected static int
METHODS_ALLOWED_OPT
Field METHODS_ALLOWED_OPT
protected static int
METHODS_NOTALLOWED_OPT
Field METHODS_NOTALLOWED_OPT
protected static int
NAMESPACE_IMPL_OPT
Field NAMESPACE_IMPL_OPT
protected static int
NAMESPACE_OPT
Field NAMESPACE_OPT
protected static int
OUTPUT_IMPL_OPT
Field OUTPUT_IMPL_OPT
protected static int
OUTPUT_OPT
Field OUTPUT_OPT
protected static int
OUTPUT_WSDL_MODE_OPT
Field OUTPUT_WSDL_MODE_OPT
protected static int
PACKAGE_OPT
Field PACKAGE_OPT
protected static int
PORTTYPE_NAME_OPT
Field PORTTYPE_NAME_OPT
protected static int
SERVICE_ELEMENT_NAME_OPT
Field SERVICE_ELEMENT_NAME_OPT
protected static int
SERVICE_PORT_NAME_OPT
Field SERVICE_PORT_NAME_OPT
protected static int
SOAPACTION_OPT
Field SOAPACTION_OPT
protected static int
STOP_CLASSES_OPT
Field STOP_CLASSES_OPT
protected static int
STYLE_OPT
Field STYLE_OPT
protected static int
TYPEMAPPING_OPT
Field TYPEMAPPING_OPT
protected static int
USE_OPT
Field USE_OPT
protected String
className
Field className
protected Emitter
emitter
Field emitter
protected boolean
isDeploy
Field isDeplpy
protected int
mode
Field mode
protected HashMap
namespaceMap
Field namespaceMap
protected CLOptionDescriptor[]
options
Define the understood options.
protected String
typeMappingVersion
Field typeMappingVersion
protected String
wsdlFilename
Field wsdlFilename
protected String
wsdlImplFilename
Field wsdlImplFilename

Constructor Summary

Java2WSDL()
Instantiate a Java2WSDL emitter.

Method Summary

protected void
addOptions(CLOptionDescriptor[] newOptions)
addOptions Add option descriptions to the tool.
protected Emitter
createEmitter()
Instantiate an Emitter
protected void
generateServerSide(Emitter j2w, String wsdlFileName)
Generate the server side artifacts from the generated WSDL
static void
main(args[] )
Main Run the Java2WSDL emitter with the specified command-line arguments
protected boolean
parseOption(CLOption option)
Parse an option
protected void
printUsage()
printUsage print usage information and quit.
protected int
run(String[] args)
run checks the command-line arguments and runs the tool.
protected boolean
validateOptions()
validateOptions This method is invoked after the options are set to validate the option settings.

Field Details

BINDING_NAME_OPT

protected static final int BINDING_NAME_OPT
Field BINDING_NAME_OPT
Field Value:
98

CLASSPATH_OPT

protected static final int CLASSPATH_OPT
Field Value:
88

DEPLOY_OPT

protected static final int DEPLOY_OPT
Field DEPLOY_OPT
Field Value:
100

EXTRA_CLASSES_OPT

protected static final int EXTRA_CLASSES_OPT
Field EXTRA_CLASSES_OPT
Field Value:
101

HELP_OPT

protected static final int HELP_OPT
Field HELP_OPT
Field Value:
104

IMPL_CLASS_OPT

protected static final int IMPL_CLASS_OPT
Field IMPL_CLASS_OPT
Field Value:
105

IMPORT_SCHEMA_OPT

protected static final int IMPORT_SCHEMA_OPT
Field IMPORT_SCHEMA_OPT
Field Value:
67

INHERITED_CLASS_OPT

protected static final int INHERITED_CLASS_OPT
Field INHERITED_CLASS_OPT
Field Value:
97

INPUT_OPT

protected static final int INPUT_OPT
Field INPUT_OPT
Field Value:
73

LOCATION_IMPORT_OPT

protected static final int LOCATION_IMPORT_OPT
Field LOCATION_IMPORT_OPT
Field Value:
76

LOCATION_OPT

protected static final int LOCATION_OPT
Field LOCATION_OPT
Field Value:
108

METHODS_ALLOWED_OPT

protected static final int METHODS_ALLOWED_OPT
Field METHODS_ALLOWED_OPT
Field Value:
109

METHODS_NOTALLOWED_OPT

protected static final int METHODS_NOTALLOWED_OPT
Field METHODS_NOTALLOWED_OPT
Field Value:
120

NAMESPACE_IMPL_OPT

protected static final int NAMESPACE_IMPL_OPT
Field NAMESPACE_IMPL_OPT
Field Value:
78

NAMESPACE_OPT

protected static final int NAMESPACE_OPT
Field NAMESPACE_OPT
Field Value:
110

OUTPUT_IMPL_OPT

protected static final int OUTPUT_IMPL_OPT
Field OUTPUT_IMPL_OPT
Field Value:
79

OUTPUT_OPT

protected static final int OUTPUT_OPT
Field OUTPUT_OPT
Field Value:
111

OUTPUT_WSDL_MODE_OPT

protected static final int OUTPUT_WSDL_MODE_OPT
Field OUTPUT_WSDL_MODE_OPT
Field Value:
119

PACKAGE_OPT

protected static final int PACKAGE_OPT
Field PACKAGE_OPT
Field Value:
112

PORTTYPE_NAME_OPT

protected static final int PORTTYPE_NAME_OPT
Field PORTTYPE_NAME_OPT
Field Value:
80

SERVICE_ELEMENT_NAME_OPT

protected static final int SERVICE_ELEMENT_NAME_OPT
Field SERVICE_ELEMENT_NAME_OPT
Field Value:
83

SERVICE_PORT_NAME_OPT

protected static final int SERVICE_PORT_NAME_OPT
Field SERVICE_PORT_NAME_OPT
Field Value:
115

SOAPACTION_OPT

protected static final int SOAPACTION_OPT
Field SOAPACTION_OPT
Field Value:
65

STOP_CLASSES_OPT

protected static final int STOP_CLASSES_OPT
Field STOP_CLASSES_OPT
Field Value:
99

STYLE_OPT

protected static final int STYLE_OPT
Field STYLE_OPT
Field Value:
121

TYPEMAPPING_OPT

protected static final int TYPEMAPPING_OPT
Field TYPEMAPPING_OPT
Field Value:
84

USE_OPT

protected static final int USE_OPT
Field USE_OPT
Field Value:
117

className

protected String className
Field className

emitter

protected Emitter emitter
Field emitter

isDeploy

protected boolean isDeploy
Field isDeplpy

mode

protected int mode
Field mode

namespaceMap

protected HashMap namespaceMap
Field namespaceMap

options

protected CLOptionDescriptor[] options
Define the understood options. Each CLOptionDescriptor contains: - The "long" version of the option. Eg, "help" means that "--help" will be recognised. - The option flags, governing the option's argument(s). - The "short" version of the option. Eg, 'h' means that "-h" will be recognised. - A description of the option for the usage message

typeMappingVersion

protected String typeMappingVersion
Field typeMappingVersion

wsdlFilename

protected String wsdlFilename
Field wsdlFilename

wsdlImplFilename

protected String wsdlImplFilename
Field wsdlImplFilename

Constructor Details

Java2WSDL

protected Java2WSDL()
Instantiate a Java2WSDL emitter.

Method Details

addOptions

protected void addOptions(CLOptionDescriptor[] newOptions)
addOptions Add option descriptions to the tool. Allows extended classes to add additional options.
Parameters:
newOptions - CLOptionDescriptor[] the options

createEmitter

protected Emitter createEmitter()
Instantiate an Emitter
Returns:

generateServerSide

protected void generateServerSide(Emitter j2w,
                                  String wsdlFileName)
            throws Exception
Generate the server side artifacts from the generated WSDL
Parameters:
j2w - the Java2WSDL emitter
wsdlFileName - the generated WSDL file

main

public static void main(args[] )
Main Run the Java2WSDL emitter with the specified command-line arguments
Parameters:

parseOption

protected boolean parseOption(CLOption option)
Parse an option
Parameters:
option - CLOption is the option
Returns:

printUsage

protected void printUsage()
printUsage print usage information and quit.

run

protected int run(String[] args)
run checks the command-line arguments and runs the tool.
Parameters:
args - String[] command-line arguments.
Returns:

validateOptions

protected boolean validateOptions()
validateOptions This method is invoked after the options are set to validate the option settings.
Returns:

Copyright © 2005 Apache Web Services Project. All Rights Reserved.