com.ibm.task.api
Class ClientTaskFactory
- java.lang.Object
com.ibm.task.api.ClientTaskFactory
- public abstract class ClientTaskFactory
- extends java.lang.Object
Field Summary
Modifier and Type | Field and Description |
---|---|
|
COPYRIGHT
|
Constructor Summary
Constructor and Description |
---|
ClientTaskFactory()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
createOperation(javax.wsdl.Definition definition,javax.wsdl.PortType portType,java.lang.String name,javax.xml.namespace.QName inputType,javax.xml.namespace.QName outputType,java.util.Map faultTypes)
Creates an operation with the specified name for the specified port type
and WSDL definition.
|
|
createPortType(javax.wsdl.Definition definition,java.lang.String name)
Creates a port type with the specified name in the specified WSDL definition.
|
|
createResourceSet()
Creates a resource set.
|
|
createResourceSet(java.lang.ClassLoader cl)
Creates a resource set that uses the specified class loader to locate resources.
|
|
createTaskModel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Creates a task model.
|
|
createTTask(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,TTaskKinds taskKind,java.lang.String taskName,com.ibm.bpe.api.UTCDate validFrom,java.lang.String targetNamespace,javax.wsdl.PortType portType,javax.wsdl.Operation operation)
Creates a collaboration or to-do task with the specified name in the specified resource set.
|
|
createWSDLDefinition(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,javax.xml.namespace.QName name)
Creates a WSDL definition with the specified name in the specified resource set.
|
|
getTaskFactory()
Returns the TaskFactory so that TTask objects can be modified.
|
|
getWSDLFactory()
Returns the WSDLFactory so that WSDL objects can be created.
|
|
getXSDFactory()
Returns the XSDFactory so that XSD objects can be created.
|
|
loadWSDLDefinition(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,java.lang.String wsdlLocation)
Retrieves the specified WSDL definition and puts it into the specified resource set.
|
|
loadXSDSchema(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,java.lang.String xsdLocation)
Retrieves the XSD schema of the specified complex message type and puts it into the
specified resource set.
|
|
newInstance()
Returns the single instance of a ClientTaskFactory.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
COPYRIGHT
- public static final java.lang.String COPYRIGHT
Constructor Detail
ClientTaskFactory
- public ClientTaskFactory()
Method Detail
newInstance
- public static ClientTaskFactory newInstance( )
createTaskModel
- public static TaskModel createTaskModel( org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
resourceSet
- The resource set that contains the information to be wrapped by the task model. getTaskFactory
- public abstract TaskFactory getTaskFactory( )
getXSDFactory
- public abstract org.eclipse.xsd.XSDFactory getXSDFactory( )
getWSDLFactory
- public abstract org.eclipse.wst.wsdl.WSDLFactory getWSDLFactory( )
createResourceSet
- public abstract org.eclipse.emf.ecore.resource.ResourceSet createResourceSet( )
createResourceSet
- public abstract org.eclipse.emf.ecore.resource.ResourceSet createResourceSet( java.lang.ClassLoader cl)
cl
- A ClassLoader to resolve resources references. loadXSDSchema
- public abstract org.eclipse.xsd.XSDSchema loadXSDSchema( org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
- java.lang.String xsdLocation)
- throws ParameterNullException
- java.io.IOException
resourceSet
- The resource set that is to contain the XSD schema. xsdLocation
- The location of the XSD schema, for example, "Address.xsd". java.io.IOException
loadWSDLDefinition
- public abstract javax.wsdl.Definition loadWSDLDefinition( org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
- java.lang.String wsdlLocation)
- throws ParameterNullException
- java.io.IOException
resourceSet
- The resource set that is to contain the WSDL definition. wsdlLocation
- The location of the WSDL definition. java.io.IOException
createWSDLDefinition
- public abstract javax.wsdl.Definition createWSDLDefinition( org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
- javax.xml.namespace.QName name)
- throws ParameterNullException
resourceSet
- The resource set that is to contain the WSDL definition. name
- The name of the WSDL definition. createOperation
- public abstract javax.wsdl.Operation createOperation( javax.wsdl.Definition definition,
- javax.wsdl.PortType portType,
- java.lang.String name,
- javax.xml.namespace.QName inputType,
- javax.xml.namespace.QName outputType,
- java.util.Map faultTypes)
- throws ParameterNullException
- ConflictingTypesException
The input, output, and fault definitions are read from the XSD files pointed to by the specified URIs.
Note: A message definition XSD should look like following:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="NAME">
<xsd:sequence>
...CONTENT...
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
This results in an operation:
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="NAME">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="NAME + 'Element'" nillable="true" type="INPUT_BO_TYPE"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="NAME + 'Response'">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="NAME + 'ResponseElement'" nillable="true" type="OUTPUT_BO_TYPE"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="NAME + 'RequestMsg'">
<wsdl:part element="NAME" name="NAME + 'Parameters'"/>
</wsdl:message>
<wsdl:message name="NAME + 'ResponseMsg'">
<wsdl:part element="NAME + 'Response'" name="NAME + 'Result'"/>
</wsdl:message>
<wsdl:portType name="PORT_TYPE_NAME">
<wsdl:operation name="NAME">
<wsdl:input message="NAME + 'RequestMsg'" name="NAME + 'Request'"/>
<wsdl:output message="NAME + 'ResponseMsg'" name="NAME + 'Response'"/>
</wsdl:operation>
</wsdl:portType>
definition
- The WSDL definition to contain the operation. portType
- The port type of the operation. name
- The name of the operation. inputType
- The URI of the BO XSD that is to be used as input data type, if any. outputType
- The URI of the BO XSD that is to be used as output data type, if any. faultTypes
- A map of fault definitions, if any. The fault name is the key of the map
and the value of the map is the URI of the BO XSD that is to be used as fault data type. createPortType
- public abstract javax.wsdl.PortType createPortType( javax.wsdl.Definition definition,
- java.lang.String name)
- throws ParameterNullException
definition
- The WSDL definition that is to contain the port type. name
- The name of the port type. createTTask
- public abstract TTask createTTask( org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
- TTaskKinds taskKind,
- java.lang.String taskName,
- com.ibm.bpe.api.UTCDate validFrom,
- java.lang.String targetNamespace,
- javax.wsdl.PortType portType,
- javax.wsdl.Operation operation)
- throws ParameterNullException
- WrongKindException
resourceSet
- The resource set that is to contain the task definition. taskKind
- The kind of the task, either HTASK_LITERAL or PTASK_LITERAL - see
TTaskKinds
. taskName
- The name of the task. validFrom
- The time from which on the task is to become valid - see com.ibm.bpe.api.UTCDate. targetNamespace
- The namespace of the task. portType
- The port type to be associated with the task. operation
- The operation to be associated with the task.