com.ibm.websphere.ant.tasks
Class Java2WSDL
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- com.ibm.ws.webservices.tools.ant.Java2WSDL
-
- com.ibm.websphere.ant.tasks.Java2WSDL
-
- All Implemented Interfaces:
- java.lang.Cloneable
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:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description class
Java2WSDL.Mapping
Used for nested package definitions.
-
Constructor Summary
Constructors Constructor and Description Java2WSDL()
-
Method Summary
Methods Modifier and Type Method and Description 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 bindingNamevoid
setBindingTypes(java.lang.String bindingTypes)
Set the list of binding types to be produced in the resulting WSDL document.void
setClassName(java.lang.String className)
Sets the classNamevoid
setClasspath(java.lang.String cp)
Set classpath to use for class introspection.void
setDebug(boolean debug)
Sets the debugvoid
setExtraClasses(java.lang.String extraClasses)
Sets the extraClassesvoid
setImplClass(java.lang.String implClass)
Sets the implClassvoid
setInput(java.lang.String input)
Sets the inputvoid
setLocation(java.lang.String location)
Sets the locationvoid
setLocationImport(java.lang.String locationImport)
Sets the locationImportvoid
setMethods(java.lang.String methods)
Allows users to indicate which methods on the SEI should be exposed in the output wsdl file.void
setMIMEStyle(java.lang.String mimeStyle)
Sets the mimeStylevoid
setNamespace(java.lang.String namespace)
Sets the namespacevoid
setNamespaceImpl(java.lang.String namespaceImpl)
Sets the namespaceImplvoid
setOutput(java.lang.String output)
Sets the outputvoid
setOutputImpl(java.lang.String outputImpl)
Sets the outputImplvoid
setPortTypeName(java.lang.String portTypeName)
Sets the portTypeNamevoid
setProperties(java.lang.String properties)
Allows specification of binding specific properties.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 ofvoid
setServiceElementName(java.lang.String serviceElementName)
Sets the serviceElementNamevoid
setServicePortName(java.lang.String servicePortName)
Sets the servicePortNamevoid
setSoapAction(java.lang.String soapAction)
Sets the soapActionvoid
setStopClasses(java.lang.String stopClasses)
Sets the stopClassesvoid
setStyle(java.lang.String style)
Sets the stylevoid
setTransport(java.lang.String transport)
Sets the transportvoid
setUse(java.lang.String use)
Sets the usevoid
setVerbose(boolean verbose)
Sets the verbosevoid
setVoidReturn(java.lang.String voidReturn)
Sets the voidReturnvoid
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
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
-
setOutput
public void setOutput(java.lang.String output)
Sets the output- Overrides:
setOutput
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
output
- The output WSDL pathname to set.
-
setInput
public void setInput(java.lang.String input)
Sets the input- Overrides:
setInput
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
input
- The input WSDL to set.
-
setOutputImpl
public void setOutputImpl(java.lang.String outputImpl)
Sets the outputImpl- Overrides:
setOutputImpl
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
outputImpl
- The outputImpl to set.
-
setLocation
public void setLocation(java.lang.String location)
Sets the location- Overrides:
setLocation
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
location
- The location to set.
-
setLocationImport
public void setLocationImport(java.lang.String locationImport)
Sets the locationImport- Overrides:
setLocationImport
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
locationImport
- The locationImport to set.
-
setClassName
public void setClassName(java.lang.String className)
Sets the className- Overrides:
setClassName
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
className
- The className to set.
-
setImplClass
public void setImplClass(java.lang.String implClass)
Sets the implClass- Overrides:
setImplClass
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
implClass
- The implClass to set.
-
setSoapAction
public void setSoapAction(java.lang.String soapAction)
Sets the soapAction- Overrides:
setSoapAction
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
soapAction
- The soapAction to set.
-
setServiceElementName
public void setServiceElementName(java.lang.String serviceElementName)
Sets the serviceElementName- Overrides:
setServiceElementName
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
serviceElementName
- The serviceElementName to set.
-
setServicePortName
public void setServicePortName(java.lang.String servicePortName)
Sets the servicePortName- Overrides:
setServicePortName
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
servicePortName
- The servicePortName to set.
-
setPortTypeName
public void setPortTypeName(java.lang.String portTypeName)
Sets the portTypeName- Overrides:
setPortTypeName
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
portTypeName
- The portTypeName to set.
-
setBindingName
public void setBindingName(java.lang.String bindingName)
Sets the bindingName- Overrides:
setBindingName
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
bindingName
- The bindingName to set.
-
setNamespace
public void setNamespace(java.lang.String namespace)
Sets the namespace- Overrides:
setNamespace
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
namespace
- The namespace to set.
-
setNamespaceImpl
public void setNamespaceImpl(java.lang.String namespaceImpl)
Sets the namespaceImpl- Overrides:
setNamespaceImpl
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
namespaceImpl
- The namespaceImpl to set.
-
setVerbose
public void setVerbose(boolean verbose)
Sets the verbose- Overrides:
setVerbose
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
verbose
- The verbose to set.
-
setDebug
public void setDebug(boolean debug)
Sets the debug- Overrides:
setDebug
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
debug
- The debug to set.
-
setStopClasses
public void setStopClasses(java.lang.String stopClasses)
Sets the stopClasses- Overrides:
setStopClasses
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
stopClasses
- The stopClasses to set.
-
setMethods
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 classcom.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
public void setStyle(java.lang.String style)
Sets the style- Overrides:
setStyle
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
style
- The style to be used in the generated WSDL file.
-
setUse
public void setUse(java.lang.String use)
Sets the use- Overrides:
setUse
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
use
- The use to set.
-
setWrapped
public void setWrapped(boolean value)
Sets the wrapped- Overrides:
setWrapped
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
wrapped
- The wrapped to set.
-
setMIMEStyle
public void setMIMEStyle(java.lang.String mimeStyle)
Sets the mimeStyle- Overrides:
setMIMEStyle
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
mimeStyle
- The mimeStyle to set.
-
setTransport
public void setTransport(java.lang.String transport)
Sets the transport- Overrides:
setTransport
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
transport
- The transport to set, either HTTP (default) or JMS.
-
setBindingTypes
public void setBindingTypes(java.lang.String bindingTypes)
Set the list of binding types to be produced in the resulting WSDL document.- Overrides:
setBindingTypes
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
bindingTypes
- a String containing a colon-separated list of binding types.
-
setProperties
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 classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
properties
- a comma or blank seperated list of
-
setVoidReturn
public void setVoidReturn(java.lang.String voidReturn)
Sets the voidReturn- Overrides:
setVoidReturn
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
voidReturn
- The voidReturn to set.
-
setExtraClasses
public void setExtraClasses(java.lang.String extraClasses)
Sets the extraClasses- Overrides:
setExtraClasses
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
extraClasses
- The extraClasses to set.
-
setPropertiesFile
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 classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
propertiesFile
- Name of the properties file.
-
setClasspath
public void setClasspath(java.lang.String cp)
Set classpath to use for class introspection.- Overrides:
setClasspath
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
- Parameters:
cp
- a String representing classpath.
-
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.- Overrides:
createMapping
in classcom.ibm.ws.webservices.tools.ant.Java2WSDL
-
-