public class WSDLActivity extends AbstractAsynchronousActivity<com.fasterxml.jackson.databind.JsonNode> implements InputPortTypeDescriptorActivity, OutputPortTypeDescriptorActivity
The activity is configured according to the WSDL location and the operation.
The ports are defined dynamically according to the WSDL specification, and in
addition an output
port attachmentList is added to represent any attachements that are
returned by the webservice.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_REFERENCE |
static String |
URI |
inputPortMapping, inputPorts, outputPortMapping, outputPorts
Constructor and Description |
---|
WSDLActivity(CredentialManager credentialManager) |
Modifier and Type | Method and Description |
---|---|
void |
configure(com.fasterxml.jackson.databind.JsonNode bean)
Configures the activity according to the information passed by the
configuration bean.
During this process the WSDL is parsed to determine the input and output ports. |
void |
executeAsynch(Map<String,T2Reference> data,
AsynchronousActivityCallback callback) |
com.fasterxml.jackson.databind.JsonNode |
getConfiguration() |
TypeDescriptor |
getTypeDescriptorForInputPort(String portName)
Provides access to the TypeDescriptor for a given input port name.
|
TypeDescriptor |
getTypeDescriptorForOutputPort(String portName)
Provides access to the TypeDescriptor for a given output port name.
|
Map<String,TypeDescriptor> |
getTypeDescriptorsForInputPorts()
Return TypeDescriptor for a all input ports.
|
Map<String,TypeDescriptor> |
getTypeDescriptorsForOutputPorts()
Return TypeDescriptor for a all output ports.
|
boolean |
isWsrfService() |
addInput, addOutput, addOutput, configurePorts, getEdits, getInputPortMapping, getInputPorts, getOutputPortMapping, getOutputPorts, removeInputs, removeOutputs, setEdits
getAddAnnotationEdit, getAnnotations, getRemoveAnnotationEdit, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputPortMapping, getInputPorts, getOutputPortMapping, getOutputPorts, setEdits
getAddAnnotationEdit, getAnnotations, getRemoveAnnotationEdit, setAnnotations
public static final String URI
public static final String ENDPOINT_REFERENCE
public WSDLActivity(CredentialManager credentialManager)
public boolean isWsrfService()
public void configure(com.fasterxml.jackson.databind.JsonNode bean) throws ActivityConfigurationException
configure
in interface Configurable<com.fasterxml.jackson.databind.JsonNode>
configure
in interface Activity<com.fasterxml.jackson.databind.JsonNode>
configure
in class AbstractAsynchronousActivity<com.fasterxml.jackson.databind.JsonNode>
bean
- the WSDLActivityConfigurationBean
configuration beanActivityConfigurationException
public com.fasterxml.jackson.databind.JsonNode getConfiguration()
getConfiguration
in interface Configurable<com.fasterxml.jackson.databind.JsonNode>
getConfiguration
in class AbstractAsynchronousActivity<com.fasterxml.jackson.databind.JsonNode>
public TypeDescriptor getTypeDescriptorForInputPort(String portName) throws UnknownOperationException, IOException
InputPortTypeDescriptorActivity
getTypeDescriptorForInputPort
in interface InputPortTypeDescriptorActivity
UnknownOperationException
- if the operation this Activity is associated with doesn't exist.IOException
TypeDescriptor
,
InputPortTypeDescriptorActivity.getTypeDescriptorsForInputPorts()
,
#getTypeDescriptorForOutputPort(String)
public Map<String,TypeDescriptor> getTypeDescriptorsForInputPorts() throws UnknownOperationException, IOException
InputPortTypeDescriptorActivity
This TypeDescriptor represents the Type defined in the schema for this Activities WSDL.
getTypeDescriptorsForInputPorts
in interface InputPortTypeDescriptorActivity
Map
from portname to TypeDescriptor
UnknownOperationException
- if the operation this Activity is associated with doesn't exist.IOException
- If the WSDL or some of its dependencies could not be readTypeDescriptor
,
InputPortTypeDescriptorActivity.getTypeDescriptorForInputPort(String)
,
#getTypeDescriptorsForOutputPorts()
public TypeDescriptor getTypeDescriptorForOutputPort(String portName) throws UnknownOperationException, IOException
OutputPortTypeDescriptorActivity
getTypeDescriptorForOutputPort
in interface OutputPortTypeDescriptorActivity
UnknownOperationException
- if the operation this Activity is associated with doesn't exist.IOException
TypeDescriptor
,
OutputPortTypeDescriptorActivity.getTypeDescriptorsForOutputPorts()
,
#getTypeDescriptorForInputPort(String)
public Map<String,TypeDescriptor> getTypeDescriptorsForOutputPorts() throws UnknownOperationException, IOException
OutputPortTypeDescriptorActivity
This TypeDescriptor represents the Type defined in the schema for this Activities WSDL.
getTypeDescriptorsForOutputPorts
in interface OutputPortTypeDescriptorActivity
Map
from portname to TypeDescriptor
UnknownOperationException
- if the operation this Activity is associated with doesn't exist.IOException
- If the WSDL or some of its dependencies could not be readTypeDescriptor
,
OutputPortTypeDescriptorActivity.getTypeDescriptorForOutputPort(String)
,
#getTypeDescriptorsForInputPorts()
public void executeAsynch(Map<String,T2Reference> data, AsynchronousActivityCallback callback)
executeAsynch
in interface AsynchronousActivity<com.fasterxml.jackson.databind.JsonNode>
executeAsynch
in class AbstractAsynchronousActivity<com.fasterxml.jackson.databind.JsonNode>
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.