com.ibm.websphere.ant.tasks
Class WSDL2Java
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
-
- com.ibm.ws.webservices.tools.ant.WSDL2JavaJ2EE
-
- com.ibm.websphere.ant.tasks.WSDL2Java
-
- All Implemented Interfaces:
- java.lang.Cloneable
public class WSDL2Java extends com.ibm.ws.webservices.tools.ant.WSDL2JavaJ2EE
The WSDL2Java task creates Java classes and deployment descriptor templates from a Web Services Description Language (WSDL) file. The structure of the WSDL2Java task is shown below:classpath="location of installed websphere classes">
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description class
WSDL2Java.Mapping
Used for nested package definitions.
-
Field Summary
-
Fields inherited from class com.ibm.ws.webservices.tools.ant.WSDL2JavaJ2EE
container, inputMappingFile, role
-
Fields inherited from class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
all, allowRelativeNamespace, classpath, debug, deployScope, fileNStoPkg, genEquals, genImplSer, genjava, genResolver, genxml, introspect, javaSearch, metaInfOnly, namespaceMap, noDataBinding, noWrappedArrays, noWrappedOperations, output, password, properties, propertiesFile, resolver, retry, scenario, servicesToWrite, testCase, timeout, url, user, verbose
-
-
Constructor Summary
Constructors Constructor and Description WSDL2Java()
-
Method Summary
Methods Modifier and Type Method and Description com.ibm.ws.webservices.tools.ant.WSDL2JavaBase.Mapping
createMapping()
Create namespace to package mapping.void
setAll(java.lang.String all)
Sets the allvoid
setClasspath(java.lang.String classpath)
Sets the classpathvoid
setContainer(java.lang.String container)
Sets the containervoid
setDebug(java.lang.String debug)
Sets the debugvoid
setDeployScope(java.lang.String deployscope)
Sets the deployscopevoid
setFileNStoPkg(java.lang.String fileName)
Set the NStoPkg mappings filename.void
setGenEquals(boolean parameter)
Enable the hashcode/equal generation.void
setGenerateResolver(boolean genResolver)
Sets the genResolvervoid
setGenImplSer(boolean parameter)
Have generated beans implement java.io.Serializable.void
setGenJava(java.lang.String genJava)
Sets the genJavavoid
setGenXML(java.lang.String genXML)
Sets the genXMLvoid
setInputMappingFile(java.lang.String inputMappingFile)
Sets the inputMappingFilevoid
setIntrospect(java.lang.String introspect)
Sets the introspectvoid
setJavaSearch(java.lang.String parameter)
The setter for the "javaSearch" attribute Set the javaSearch option used whith genJava.void
setNoDataBinding(boolean value)
Setter for noDataBinding Force everything to be mapped to a generic object (i.e.void
setNoWrappedArrays(boolean parameter)
The setter for the "noWrappedArrays" attribute Do not wrap arrays.void
setNoWrappedOperations(boolean parameter)
The setter for the "noWrappedOperations" attribute.void
setOutput(java.io.File output)
Sets the outputvoid
setPassword(java.lang.String password)
Sets the passwordvoid
setRole(java.lang.String role)
Sets the rolevoid
setScenario(java.lang.String parameter)
Set the scenario option used with genJava.void
setTestCase(java.lang.String testcase)
Sets the testcasevoid
setTimeout(java.lang.String timeout)
Sets the timeoutvoid
setUrl(java.lang.String url)
Sets the urlvoid
setUser(java.lang.String user)
Sets the uservoid
setUseResolver(java.lang.String resolver)
Sets the resolvervoid
setVerbose(java.lang.String verbose)
Sets the verbose-
Methods inherited from class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
execute, postExecute, setAllowRelativeNamespace, setMETA_INF_Only, setProperties, setPropertiesFile, setRetry, setServicesToBeWritten
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setInputMappingFile
public void setInputMappingFile(java.lang.String inputMappingFile)
Sets the inputMappingFile- Overrides:
setInputMappingFile
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaJ2EE
- Parameters:
inputMappingFile
- The inputMappingFile to set. The file name of the java to WSDL mapping file.
-
setRole
public void setRole(java.lang.String role)
Sets the role- Overrides:
setRole
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaJ2EE
- Parameters:
role
- The role to set. The J2EE development role that identifies which files to generate.
-
setContainer
public void setContainer(java.lang.String container)
Sets the container- Overrides:
setContainer
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaJ2EE
- Parameters:
container
- The container to set. Indicates the J2EE container to be used.
-
setVerbose
public void setVerbose(java.lang.String verbose)
Sets the verbose- Overrides:
setVerbose
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
verbose
- The verbose to set.
-
setDebug
public void setDebug(java.lang.String debug)
Sets the debug- Overrides:
setDebug
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
debug
- The debug to set.
-
setTestCase
public void setTestCase(java.lang.String testcase)
Sets the testcase- Overrides:
setTestCase
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
testcase
- The testcase to set.
-
setOutput
public void setOutput(java.io.File output)
Sets the output- Overrides:
setOutput
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
output
- The output to set.
-
setDeployScope
public void setDeployScope(java.lang.String deployscope)
Sets the deployscope- Overrides:
setDeployScope
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
deployscope
- The deployscope to set.
-
setGenJava
public void setGenJava(java.lang.String genJava)
Sets the genJava- Overrides:
setGenJava
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
genJava
- The genJava option. "No", "IfNotExists" (default), or "Overwrite"
-
setGenXML
public void setGenXML(java.lang.String genXML)
Sets the genXML- Overrides:
setGenXML
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
genXML
- The genXML to set.
-
setUrl
public void setUrl(java.lang.String url)
Sets the url- Overrides:
setUrl
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
url
- The url of the input WSDL document
-
setAll
public void setAll(java.lang.String all)
Sets the all- Overrides:
setAll
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
all
- The all to set.
-
setTimeout
public void setTimeout(java.lang.String timeout)
Sets the timeout- Overrides:
setTimeout
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
timeout
- Specifies how long to wait, in seconds, for the url to respond
-
setUser
public void setUser(java.lang.String user)
Sets the user- Overrides:
setUser
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
user
- The user to set.
-
setPassword
public void setPassword(java.lang.String password)
Sets the password- Overrides:
setPassword
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
password
- The password to set.
-
setUseResolver
public void setUseResolver(java.lang.String resolver)
Sets the resolver- Overrides:
setUseResolver
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
resolver
- The resolver to set.
-
setGenerateResolver
public void setGenerateResolver(boolean genResolver)
Sets the genResolver- Overrides:
setGenerateResolver
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
genResolver
- Set to generate an absolute-import resolver class.
-
createMapping
public com.ibm.ws.webservices.tools.ant.WSDL2JavaBase.Mapping createMapping()
Create namespace to package mapping. The namespace to package mapping information is embedded in a "mapping" element. Elements have createmethods. Note that the Mapping class has "namespace" and "package" attributes. - Overrides:
createMapping
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
-
setClasspath
public void setClasspath(java.lang.String classpath)
Sets the classpath- Overrides:
setClasspath
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
classpath
- Set to the classpath to use for class introspection.
-
setIntrospect
public void setIntrospect(java.lang.String introspect)
Sets the introspect- Overrides:
setIntrospect
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
introspect
- Set to enable introspection of existing classes to determine mapping details.
-
setJavaSearch
public void setJavaSearch(java.lang.String parameter)
The setter for the "javaSearch" attribute Set the javaSearch option used whith genJava. Specifies how to determine file existence. i.e (File, Classpath, Both) Within File system, classpath, or in both.- Overrides:
setJavaSearch
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
parameter
- String value of 'File', 'Classpath', 'Both'
-
setNoDataBinding
public void setNoDataBinding(boolean value)
Setter for noDataBinding Force everything to be mapped to a generic object (i.e. SOAPElement)- Overrides:
setNoDataBinding
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
-
setNoWrappedArrays
public void setNoWrappedArrays(boolean parameter)
The setter for the "noWrappedArrays" attribute Do not wrap arrays.- Overrides:
setNoWrappedArrays
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
-
setNoWrappedOperations
public void setNoWrappedOperations(boolean parameter)
The setter for the "noWrappedOperations" attribute. Do not wrap Operations.- Overrides:
setNoWrappedOperations
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
-
setFileNStoPkg
public void setFileNStoPkg(java.lang.String fileName)
Set the NStoPkg mappings filename. setter for fileNStoPkg- Overrides:
setFileNStoPkg
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
-
setGenEquals
public void setGenEquals(boolean parameter)
Enable the hashcode/equal generation. The setter for the "genEquals" attribute- Overrides:
setGenEquals
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
-
setGenImplSer
public void setGenImplSer(boolean parameter)
Have generated beans implement java.io.Serializable. The setter for the "genImplSer" attribute- Overrides:
setGenImplSer
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
-
setScenario
public void setScenario(java.lang.String parameter)
Set the scenario option used with genJava. Specifies how to refine generation behavior. The setter for the "scenario" attribute- Overrides:
setScenario
in classcom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
- Parameters:
parameter
- "normal" to get default behavior, "wrdTopDown" to get WRD-specific action.
-
-