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

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:

<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>


Inner Class Summary
 class WSDL2Java.Mapping
          Used for nested package definitions.
 
Inner classes inherited from class com.ibm.ws.webservices.tools.ant.WSDL2JavaBase
com.ibm.ws.webservices.tools.ant.WSDL2JavaBase.Mapping
 
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, debug, deployScope, genjava, genResolver, genxml, metaInfOnly, namespaceMap, output, password, resolver, 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
WSDL2Java()
           
 
Method Summary
 com.ibm.ws.webservices.tools.ant.WSDL2JavaJ2EE.Mapping createMapping()
          Create namespace to package mapping.
 void setAll(java.lang.String all)
          Sets the all
 void setContainer(java.lang.String container)
          Sets the container
 void setDebug(java.lang.String debug)
          Sets the debug
 void setDeployScope(java.lang.String deployscope)
          Sets the deployscope
 void setGenerateResolver(boolean genResolver)
          Sets the genResolver
 void setGenJava(java.lang.String genJava)
          Sets the genJava
 void setGenXML(java.lang.String genXML)
          Sets the genXML
 void setInputMappingFile(java.lang.String inputMappingFile)
          Sets the inputMappingFile
 void setOutput(java.io.File output)
          Sets the output
 void setPassword(java.lang.String password)
          Sets the password
 void setRole(java.lang.String role)
          Sets the role
 void setTestCase(java.lang.String testcase)
          Sets the testcase
 void setTimeout(java.lang.String timeout)
          Sets the timeout
 void setUrl(java.lang.String url)
          Sets the url
 void setUser(java.lang.String user)
          Sets the user
 void setUseResolver(java.lang.String resolver)
          Sets the resolver
 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, setMETA_INF_Only
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
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

public WSDL2Java()
Method Detail

setInputMappingFile

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

public com.ibm.ws.webservices.tools.ant.WSDL2JavaJ2EE.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