|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.di.fc.Function com.ibm.di.fc.webservice.ComplexTypesGenerator
public class ComplexTypesGenerator
The Complex Types Generator Function Component is part of the TDI Web
Services suite. This Function Component is used for generating a JAR file,
which contains the Java class files implementing the complex data types
defined in a schema either internal to or referenced by a WSDL. This JAR file
can then be used by the other Web Service FCs in order to serialize and parse
SOAP messages containing these complex data types. Please note that this FC
is not supposed to be "run" as part of an AssemblyLine for example. Here is
the way this FC is supposed to be used:
1. Place it in an AssemblyLine
2. Fill in its parameters
3. Click the "Generate complex types" button to create the JAR file.
After the desired JAR file has been created the FC can be either disabled or
deleted altogether from the AssemblyLine - the FC does not provide any
runtime functionality whatsoever.
Field Summary |
---|
Fields inherited from class com.ibm.di.fc.Function |
---|
logger |
Constructor Summary | |
---|---|
ComplexTypesGenerator()
|
Method Summary | |
---|---|
void |
compile(java.lang.String aJavaCompilerExecutablePath)
Compiles and executes the java command which generates the complex java types |
static void |
generateComplexTypes(java.lang.String aWsdlUrl,
java.lang.String aWsdlToJavaOptions,
java.lang.String aJDKPath,
java.lang.String aJarFileName,
boolean aAutoGenJavaSrcFiles)
Executes the main logic in this class which generates the complex java types and saves them in a JAR archive. |
void |
generateComplexTypesJavaFiles(java.lang.String wsdlFile,
java.lang.String aWsdlToJavaOptions)
Generates complex java types by a given WSDL and options |
java.lang.String |
getVersion()
Version information. |
java.lang.Object |
perform(java.lang.Object obj)
Does nothing in this class |
static java.lang.String |
readInputStream(java.io.InputStream aInputStream)
Reads from the given input stream until the end of the stream is reached and returns the read data. |
Methods inherited from class com.ibm.di.fc.Function |
---|
debug, getConfiguration, getContext, getDebug, getLog, getParam, getRSInterface, getUI, initialize, initialize, logmsg, querySchema, setConfiguration, setContext, setDebug, setLog, setParam, setRSInterface, terminate, updateSchema, verifyInitialized |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComplexTypesGenerator()
Method Detail |
---|
public void generateComplexTypesJavaFiles(java.lang.String wsdlFile, java.lang.String aWsdlToJavaOptions) throws java.lang.Exception
wsdlFile
- The WSDL that defines the complex typesaWsdlToJavaOptions
- The options to the generator
java.lang.Exception
public void compile(java.lang.String aJavaCompilerExecutablePath) throws java.lang.Exception
aJavaCompilerExecutablePath
- The Java Home Path
java.lang.Exception
public static java.lang.String readInputStream(java.io.InputStream aInputStream) throws java.io.IOException
aInputStream
- The input stream.
java.io.IOException
public java.lang.Object perform(java.lang.Object obj) throws java.lang.Exception
obj
-
java.lang.Exception
public java.lang.String getVersion()
public static void generateComplexTypes(java.lang.String aWsdlUrl, java.lang.String aWsdlToJavaOptions, java.lang.String aJDKPath, java.lang.String aJarFileName, boolean aAutoGenJavaSrcFiles) throws java.lang.Exception
aWsdlUrl
- The URL to the WSDL fileaWsdlToJavaOptions
- Any options you want to pass to the generatoraJDKPath
- Path to JDKaJarFileName
- The name of the JAR you want to get in the end of the
operationaAutoGenJavaSrcFiles
- If true, the program will generate Java source files for the
generated complex types
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |