com.ibm.websphere.ant.tasks
Class Java2WSDL

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended bycom.ibm.ws.webservices.tools.ant.Java2WSDL
              extended bycom.ibm.websphere.ant.tasks.Java2WSDL

public class Java2WSDL
extends com.ibm.ws.webservices.tools.ant.Java2WSDL

The Java2WSDL task maps a Java class to a Web Services Description Language (WSDL) file. The structure of the Java2WSDL task is shown below:

<taskdef name="Java2WSDLTask" classname="com.ibm.websphere.ant.tasks.Java2WSDL"> <classpath> <pathelement path="location of installed websphere classes"/> <pathelement path="location of Java class to be mapped"/> </classpath> </taskdef> <Java2WSDLTask output="pathname of wsdl file to create" className="name of Java class to be mapped" implClass="name of Java class implementation to be mapped" namespace="target namespace for the WSDL file being generated" location="location or URL of the service"> <mapping namespace="namespace to map to" package="Java package to map"/> </Java2WSDLTask>


Nested Class Summary
 class Java2WSDL.Mapping
          Used for nested package definitions.
 
Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
Java2WSDL()
           
 
Method Summary
 com.ibm.ws.webservices.tools.ant.Java2WSDL.Mapping createMapping()
          Used to provide mappings of a Java package to a namespace.
 void setBindingName(java.lang.String bindingName)
          Sets the bindingName
 void setClassName(java.lang.String className)
          Sets the className
 void setDebug(boolean debug)
          Sets the debug
 void setExtraClasses(java.lang.String extraClasses)
          Sets the extraClasses
 void setImplClass(java.lang.String implClass)
          Sets the implClass
 void setInput(java.lang.String input)
          Sets the input
 void setLocation(java.lang.String location)
          Sets the location
 void setLocationImport(java.lang.String locationImport)
          Sets the locationImport
 void setMIMEStyle(java.lang.String mimeStyle)
          Sets the mimeStyle
 void setNamespace(java.lang.String namespace)
          Sets the namespace
 void setNamespaceImpl(java.lang.String namespaceImpl)
          Sets the namespaceImpl
 void setOutput(java.lang.String output)
          Sets the output
 void setOutputImpl(java.lang.String outputImpl)
          Sets the outputImpl
 void setPortTypeName(java.lang.String portTypeName)
          Sets the portTypeName
 void setServiceElementName(java.lang.String serviceElementName)
          Sets the serviceElementName
 void setServicePortName(java.lang.String servicePortName)
          Sets the servicePortName
 void setSoapAction(java.lang.String soapAction)
          Sets the soapAction
 void setStopClasses(java.lang.String stopClasses)
          Sets the stopClasses
 void setStyle(java.lang.String style)
          Sets the style
 void setTransport(java.lang.String transport)
          Sets the transport
 void setUse(java.lang.String use)
          Sets the use
 void setVerbose(boolean verbose)
          Sets the verbose
 void setVoidReturn(java.lang.String voidReturn)
          Sets the voidReturn
 void setWrapped(boolean value)
          Sets the wrapped
 
Methods inherited from class com.ibm.ws.webservices.tools.ant.Java2WSDL
execute, setBindingTypes, setProperties
 
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

Java2WSDL

public Java2WSDL()
Method Detail

setOutput

public void setOutput(java.lang.String output)
Sets the output

Parameters:
output - The output WSDL pathname to set.

setInput

public void setInput(java.lang.String input)
Sets the input

Parameters:
input - The input WSDL to set.

setOutputImpl

public void setOutputImpl(java.lang.String outputImpl)
Sets the outputImpl

Parameters:
outputImpl - The outputImpl to set.

setLocation

public void setLocation(java.lang.String location)
Sets the location

Parameters:
location - The location to set.

setLocationImport

public void setLocationImport(java.lang.String locationImport)
Sets the locationImport

Parameters:
locationImport - The locationImport to set.

setClassName

public void setClassName(java.lang.String className)
Sets the className

Parameters:
className - The className to set.

setImplClass

public void setImplClass(java.lang.String implClass)
Sets the implClass

Parameters:
implClass - The implClass to set.

setSoapAction

public void setSoapAction(java.lang.String soapAction)
Sets the soapAction

Parameters:
soapAction - The soapAction to set.

setServiceElementName

public void setServiceElementName(java.lang.String serviceElementName)
Sets the serviceElementName

Parameters:
serviceElementName - The serviceElementName to set.

setServicePortName

public void setServicePortName(java.lang.String servicePortName)
Sets the servicePortName

Parameters:
servicePortName - The servicePortName to set.

setPortTypeName

public void setPortTypeName(java.lang.String portTypeName)
Sets the portTypeName

Parameters:
portTypeName - The portTypeName to set.

setBindingName

public void setBindingName(java.lang.String bindingName)
Sets the bindingName

Parameters:
bindingName - The bindingName to set.

setNamespace

public void setNamespace(java.lang.String namespace)
Sets the namespace

Parameters:
namespace - The namespace to set.

setNamespaceImpl

public void setNamespaceImpl(java.lang.String namespaceImpl)
Sets the namespaceImpl

Parameters:
namespaceImpl - The namespaceImpl to set.

setVerbose

public void setVerbose(boolean verbose)
Sets the verbose

Parameters:
verbose - The verbose to set.

setDebug

public void setDebug(boolean debug)
Sets the debug

Parameters:
debug - The debug to set.

setStopClasses

public void setStopClasses(java.lang.String stopClasses)
Sets the stopClasses

Parameters:
stopClasses - The stopClasses to set.

setStyle

public void setStyle(java.lang.String style)
Sets the style

Parameters:
style - The style to be used in the generated WSDL file.

setUse

public void setUse(java.lang.String use)
Sets the use

Parameters:
use - The use to set.

setWrapped

public void setWrapped(boolean value)
Sets the wrapped


setMIMEStyle

public void setMIMEStyle(java.lang.String mimeStyle)
Sets the mimeStyle

Parameters:
mimeStyle - The mimeStyle to set.

setTransport

public void setTransport(java.lang.String transport)
Sets the transport

Parameters:
transport - The transport to set, either HTTP (default) or JMS.

setVoidReturn

public void setVoidReturn(java.lang.String voidReturn)
Sets the voidReturn

Parameters:
voidReturn - The voidReturn to set.

setExtraClasses

public void setExtraClasses(java.lang.String extraClasses)
Sets the extraClasses

Parameters:
extraClasses - The extraClasses to set.

createMapping

public com.ibm.ws.webservices.tools.ant.Java2WSDL.Mapping createMapping()
Used to provide mappings of a Java package to a namespace. If a package is encountered that does not have a namespace, Java2WSDL will generate a suitable namespace name. This argument may be repeated to specify mappings for multiple packages.