com.ibm.websphere.ant.tasks

Class WSDL2Java

  1. java.lang.Object
  2. extended byorg.apache.tools.ant.ProjectComponent
  3. extended byorg.apache.tools.ant.Task
  4. extended bycom.ibm.ws.webservices.tools.ant.WSDL2JavaBase
  5. extended bycom.ibm.ws.webservices.tools.ant.WSDL2JavaJ2EE
  6. extended bycom.ibm.websphere.ant.tasks.WSDL2Java

  1. public class WSDL2Java
  2. 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: <taskdef name="WSDL2JavaTask" classname="com.ibm.websphere.ant.tasks.wsdl2java"> classpath="location of installed websphere classes"> </taskdef> <wsdl2javatask url="location of input WSDL document" output="root directory for emitted files" role="J2EE development role" container="j2ee container" genjava="generate java files"> </wsdl2javatask>

Nested Class Summary

Modifier and Type Class and Description
  1. 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
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
project

Constructor Summary

Constructor and Description
WSDL2Java()

Method Summary

Modifier and Type Method and Description
  1. com.ibm.ws.webservices.tools.ant.WSDL2JavaBase.Mapping
createMapping()
Create namespace to package mapping.
  1. void
setAll(java.lang.String all)
Sets the all
  1. void
setClasspath(java.lang.String classpath)
Sets the classpath
  1. void
setContainer(java.lang.String container)
Sets the container
  1. void
setDebug(java.lang.String debug)
Sets the debug
  1. void
setDeployScope(java.lang.String deployscope)
Sets the deployscope
  1. void
setFileNStoPkg(java.lang.String fileName)
Set the NStoPkg mappings filename.
  1. void
setGenEquals(boolean parameter)
Enable the hashcode/equal generation.
  1. void
setGenerateResolver(boolean genResolver)
Sets the genResolver
  1. void
setGenImplSer(boolean parameter)
Have generated beans implement java.io.Serializable.
  1. void
setGenJava(java.lang.String genJava)
Sets the genJava
  1. void
setGenXML(java.lang.String genXML)
Sets the genXML
  1. void
setInputMappingFile(java.lang.String inputMappingFile)
Sets the inputMappingFile
  1. void
setIntrospect(java.lang.String introspect)
Sets the introspect
  1. void
setJavaSearch(java.lang.String parameter)
The setter for the "javaSearch" attribute Set the javaSearch option used whith genJava.
  1. void
setNoDataBinding(boolean value)
Setter for noDataBinding Force everything to be mapped to a generic object (i.e.
  1. void
setNoWrappedArrays(boolean parameter)
The setter for the "noWrappedArrays" attribute Do not wrap arrays.
  1. void
setNoWrappedOperations(boolean parameter)
The setter for the "noWrappedOperations" attribute.
  1. void
setOutput(java.io.File output)
Sets the output
  1. void
setPassword(java.lang.String password)
Sets the password
  1. void
setRole(java.lang.String role)
Sets the role
  1. void
setScenario(java.lang.String parameter)
Set the scenario option used with genJava.
  1. void
setTestCase(java.lang.String testcase)
Sets the testcase
  1. void
setTimeout(java.lang.String timeout)
Sets the timeout
  1. void
setUrl(java.lang.String url)
Sets the url
  1. void
setUser(java.lang.String user)
Sets the user
  1. void
setUseResolver(java.lang.String resolver)
Sets the resolver
  1. void
setVerbose(java.lang.String verbose)
Sets the verbose
Methods inherited from class com.ibm.ws.webservices.tools.ant.WSDL2JavaJ2EE
_execute, preExecute
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
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

WSDL2Java

  1. public WSDL2Java()

Method Detail

setInputMappingFile

  1. public void setInputMappingFile( java.lang.String inputMappingFile)
Sets the inputMappingFile
Overrides:
setInputMappingFile in class com.ibm.ws.webservices.tools.ant.WSDL2JavaJ2EE
Parameters:
inputMappingFile - The inputMappingFile to set. The file name of the java to WSDL mapping file.

setRole

  1. public void setRole(java.lang.String role)
Sets the role
Overrides:
setRole in class com.ibm.ws.webservices.tools.ant.WSDL2JavaJ2EE
Parameters:
role - The role to set. The J2EE development role that identifies which files to generate.

setContainer

  1. public void setContainer(java.lang.String container)
Sets the container
Overrides:
setContainer in class com.ibm.ws.webservices.tools.ant.WSDL2JavaJ2EE
Parameters:
container - The container to set. Indicates the J2EE container to be used.

setVerbose

  1. public void setVerbose(java.lang.String verbose)
Sets the verbose
Overrides:
setVerbose in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
verbose - The verbose to set.

setDebug

  1. public void setDebug(java.lang.String debug)
Sets the debug
Overrides:
setDebug in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
debug - The debug to set.

setTestCase

  1. public void setTestCase(java.lang.String testcase)
Sets the testcase
Overrides:
setTestCase in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
testcase - The testcase to set.

setOutput

  1. public void setOutput(java.io.File output)
Sets the output
Overrides:
setOutput in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
output - The output to set.

setDeployScope

  1. public void setDeployScope(java.lang.String deployscope)
Sets the deployscope
Overrides:
setDeployScope in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
deployscope - The deployscope to set.

setGenJava

  1. public void setGenJava(java.lang.String genJava)
Sets the genJava
Overrides:
setGenJava in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
genJava - The genJava option. "No", "IfNotExists" (default), or "Overwrite"

setGenXML

  1. public void setGenXML(java.lang.String genXML)
Sets the genXML
Overrides:
setGenXML in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
genXML - The genXML to set.

setUrl

  1. public void setUrl(java.lang.String url)
Sets the url
Overrides:
setUrl in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
url - The url of the input WSDL document

setAll

  1. public void setAll(java.lang.String all)
Sets the all
Overrides:
setAll in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
all - The all to set.

setTimeout

  1. public void setTimeout(java.lang.String timeout)
Sets the timeout
Overrides:
setTimeout in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
timeout - Specifies how long to wait, in seconds, for the url to respond

setUser

  1. public void setUser(java.lang.String user)
Sets the user
Overrides:
setUser in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
user - The user to set.

setPassword

  1. public void setPassword(java.lang.String password)
Sets the password
Overrides:
setPassword in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
password - The password to set.

setUseResolver

  1. public void setUseResolver(java.lang.String resolver)
Sets the resolver
Overrides:
setUseResolver in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
resolver - The resolver to set.

setGenerateResolver

  1. public void setGenerateResolver( boolean genResolver)
Sets the genResolver
Overrides:
setGenerateResolver in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
genResolver - Set to generate an absolute-import resolver class.

createMapping

  1. 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 create methods. Note that the Mapping class has "namespace" and "package" attributes.
Overrides:
createMapping in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase

setClasspath

  1. public void setClasspath(java.lang.String classpath)
Sets the classpath
Overrides:
setClasspath in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
classpath - Set to the classpath to use for class introspection.

setIntrospect

  1. public void setIntrospect(java.lang.String introspect)
Sets the introspect
Overrides:
setIntrospect in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
introspect - Set to enable introspection of existing classes to determine mapping details.

setJavaSearch

  1. 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 class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
parameter - String value of 'File', 'Classpath', 'Both'

setNoDataBinding

  1. public void setNoDataBinding(boolean value)
Setter for noDataBinding Force everything to be mapped to a generic object (i.e. SOAPElement)
Overrides:
setNoDataBinding in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase

setNoWrappedArrays

  1. public void setNoWrappedArrays( boolean parameter)
The setter for the "noWrappedArrays" attribute Do not wrap arrays.
Overrides:
setNoWrappedArrays in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase

setNoWrappedOperations

  1. public void setNoWrappedOperations( boolean parameter)
The setter for the "noWrappedOperations" attribute. Do not wrap Operations.
Overrides:
setNoWrappedOperations in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase

setFileNStoPkg

  1. public void setFileNStoPkg(java.lang.String fileName)
Set the NStoPkg mappings filename. setter for fileNStoPkg
Overrides:
setFileNStoPkg in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase

setGenEquals

  1. public void setGenEquals(boolean parameter)
Enable the hashcode/equal generation. The setter for the "genEquals" attribute
Overrides:
setGenEquals in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase

setGenImplSer

  1. public void setGenImplSer(boolean parameter)
Have generated beans implement java.io.Serializable. The setter for the "genImplSer" attribute
Overrides:
setGenImplSer in class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase

setScenario

  1. 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 class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
Parameters:
parameter - "normal" to get default behavior, "wrdTopDown" to get WRD-specific action.