com.ibm.websphere.ant.tasks

Class Java2WSDL

  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.Java2WSDL
  5. extended bycom.ibm.websphere.ant.tasks.Java2WSDL

  1. public class Java2WSDL
  2. 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" classpath="location 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

Modifier and Type Class and Description
  1. 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

Constructor and Description
Java2WSDL()

Method Summary

Modifier and Type Method and Description
  1. com.ibm.ws.webservices.tools.ant.Java2WSDL.Mapping
createMapping()
Used to provide mappings of a Java package to a namespace.
  1. void
setBindingName(java.lang.String bindingName)
Sets the bindingName
  1. void
setBindingTypes(java.lang.String bindingTypes)
Set the list of binding types to be produced in the resulting WSDL document.
  1. void
setClassName(java.lang.String className)
Sets the className
  1. void
setClasspath(java.lang.String cp)
Set classpath to use for class introspection.
  1. void
setDebug(boolean debug)
Sets the debug
  1. void
setExtraClasses(java.lang.String extraClasses)
Sets the extraClasses
  1. void
setImplClass(java.lang.String implClass)
Sets the implClass
  1. void
setInput(java.lang.String input)
Sets the input
  1. void
setLocation(java.lang.String location)
Sets the location
  1. void
setLocationImport(java.lang.String locationImport)
Sets the locationImport
  1. void
setMethods(java.lang.String methods)
Allows users to indicate which methods on the SEI should be exposed in the output wsdl file.
  1. void
setMIMEStyle(java.lang.String mimeStyle)
Sets the mimeStyle
  1. void
setNamespace(java.lang.String namespace)
Sets the namespace
  1. void
setNamespaceImpl(java.lang.String namespaceImpl)
Sets the namespaceImpl
  1. void
setOutput(java.lang.String output)
Sets the output
  1. void
setOutputImpl(java.lang.String outputImpl)
Sets the outputImpl
  1. void
setPortTypeName(java.lang.String portTypeName)
Sets the portTypeName
  1. void
setProperties(java.lang.String properties)
Allows specification of binding specific properties.
  1. void
setPropertiesFile(java.lang.String propertiesFile)
Allows specification of a properties file which can contain either a list of class names that should be added to the type section of the output wsdl, and/or a list of
  1. void
setServiceElementName(java.lang.String serviceElementName)
Sets the serviceElementName
  1. void
setServicePortName(java.lang.String servicePortName)
Sets the servicePortName
  1. void
setSoapAction(java.lang.String soapAction)
Sets the soapAction
  1. void
setStopClasses(java.lang.String stopClasses)
Sets the stopClasses
  1. void
setStyle(java.lang.String style)
Sets the style
  1. void
setTransport(java.lang.String transport)
Sets the transport
  1. void
setUse(java.lang.String use)
Sets the use
  1. void
setVerbose(boolean verbose)
Sets the verbose
  1. void
setVoidReturn(java.lang.String voidReturn)
Sets the voidReturn
  1. void
setWrapped(boolean value)
Sets the wrapped
Methods inherited from class com.ibm.ws.webservices.tools.ant.Java2WSDL
execute, setAttributeFormDefault, setElementFormDefault
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

Java2WSDL

  1. public Java2WSDL()

Method Detail

setOutput

  1. public void setOutput(java.lang.String output)
Sets the output
Overrides:
setOutput in class com.ibm.ws.webservices.tools.ant.Java2WSDL
Parameters:
output - The output WSDL pathname to set.

setInput

  1. public void setInput(java.lang.String input)
Sets the input
Overrides:
setInput in class com.ibm.ws.webservices.tools.ant.Java2WSDL
Parameters:
input - The input WSDL to set.

setOutputImpl

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

setLocation

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

setLocationImport

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

setClassName

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

setImplClass

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

setSoapAction

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

setServiceElementName

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

setServicePortName

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

setPortTypeName

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

setBindingName

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

setNamespace

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

setNamespaceImpl

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

setVerbose

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

setDebug

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

setStopClasses

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

setMethods

  1. public void setMethods(java.lang.String methods)
Allows users to indicate which methods on the SEI should be exposed in the output wsdl file.
Overrides:
setMethods in class com.ibm.ws.webservices.tools.ant.Java2WSDL
Parameters:
methods - A space or comma separated list of the SEI methods which should be exposed in the output wsdl.

setStyle

  1. public void setStyle(java.lang.String style)
Sets the style
Overrides:
setStyle in class com.ibm.ws.webservices.tools.ant.Java2WSDL
Parameters:
style - The style to be used in the generated WSDL file.

setUse

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

setWrapped

  1. public void setWrapped(boolean value)
Sets the wrapped
Overrides:
setWrapped in class com.ibm.ws.webservices.tools.ant.Java2WSDL

setMIMEStyle

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

setTransport

  1. public void setTransport(java.lang.String transport)
Sets the transport
Overrides:
setTransport in class com.ibm.ws.webservices.tools.ant.Java2WSDL
Parameters:
transport - The transport to set, either HTTP (default) or JMS.

setBindingTypes

  1. public void setBindingTypes(java.lang.String bindingTypes)
Set the list of binding types to be produced in the resulting WSDL document.
Overrides:
setBindingTypes in class com.ibm.ws.webservices.tools.ant.Java2WSDL
Parameters:
bindingTypes - a String containing a colon-separated list of binding types.

setProperties

  1. public void setProperties(java.lang.String properties)
Allows specification of binding specific properties. Allows specification of properties which specify a list of class names that should be added to the type section of the output wsdl. Example: extraClasses=com.ibm.Class1,com.sun.Class2,org.apache.Class3
Overrides:
setProperties in class com.ibm.ws.webservices.tools.ant.Java2WSDL
Parameters:
properties - a comma or blank seperated list of

setVoidReturn

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

setExtraClasses

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

setPropertiesFile

  1. public void setPropertiesFile(java.lang.String propertiesFile)
Allows specification of a properties file which can contain either a list of class names that should be added to the type section of the output wsdl, and/or a list of
Overrides:
setPropertiesFile in class com.ibm.ws.webservices.tools.ant.Java2WSDL
Parameters:
propertiesFile - Name of the properties file.

setClasspath

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

createMapping

  1. 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.
Overrides:
createMapping in class com.ibm.ws.webservices.tools.ant.Java2WSDL