public abstract class SoapWebServiceAdapter extends HttpServiceAdapter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_WSDL |
static java.lang.String |
SOAP_ACTION |
static java.lang.String |
SOAP_VERSION |
static java.lang.String |
SOAP_VERSION_11 |
static java.lang.String |
SOAP_VERSION_12 |
CONNECT_TIMEOUT, DEFAULT_ERROR_HTTP_CODE, DEFAULT_RETRY_HTTP_CODE, ERROR_HTTP_CODES, PROP_PASS, PROP_USER, READ_TIMEOUT, RETRY_HTTP_CODESDISABLED, GROOVY, JAVA_EL, JAVASCRIPT, logger, OUTPUTDOCSCOMPCODE_AUTO_RETRY, DEFAULT_STUBBER_PORT, DEFAULT_STUBBER_TIMEOUT, DO_LOGGING, MAKE_ACTUAL_CALL, PROP_MAX_TRIES, PROP_RETRY_INTERVAL, PROP_SYNCHRONOUS_RESPONSE, PROP_TIMEOUT, REQUEST_VARIABLE, REQUEST_XSD, RESPONSE_VARIABLE, RESPONSE_XSD| Constructor and Description |
|---|
SoapWebServiceAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract javax.xml.soap.SOAPMessage |
createSoapRequest(java.lang.Object requestObj)
Populate the SOAP request message.
|
protected void |
extractSoapResponseHeaders(javax.xml.soap.SOAPHeader header) |
java.lang.String |
getAdapterInvocationErrorMessage()
This method allows the concrete adapters to define whatever they need for
a decent error message.
|
protected java.lang.String |
getRequestData()
Builds the request XML.
|
protected java.util.Map<java.lang.String,java.lang.String> |
getRequestHeaders()
Override to return protocol-specific headers to be included on the request.
|
protected org.json.JSONObject |
getRequestMeta() |
protected org.json.JSONObject |
getResponseMeta() |
protected java.lang.String |
getSoapAction()
The SOAPAction HTTP request header value.
|
protected javax.xml.soap.SOAPFactory |
getSoapFactory() |
protected javax.xml.soap.MessageFactory |
getSoapMessageFactory() |
protected javax.xml.soap.SOAPMessage |
getSoapRequest(java.lang.String request) |
protected java.util.Map<javax.xml.soap.Name,java.lang.String> |
getSoapRequestHeaders()
Override to populate soap request header values
|
protected javax.xml.soap.SOAPMessage |
getSoapResponse(java.lang.String response) |
protected java.util.Map<javax.xml.soap.Name,java.lang.String> |
getSoapResponseHeaders() |
protected java.lang.String |
getSoapVersion() |
protected com.centurylink.mdw.model.event.AdapterStubRequest |
getStubRequest(java.lang.String requestContent) |
protected java.lang.String |
getWsdlUrl() |
java.lang.String |
invoke(java.lang.Object connection,
java.lang.String request,
int timeout,
java.util.Map<java.lang.String,java.lang.String> headers)
Performs the work of invoking the Web service.
|
protected java.lang.Long |
logRequest(com.centurylink.mdw.model.request.Request request) |
void |
onSuccess(java.lang.String response)
Overriding this method affords the opportunity to parse the response and
populate process variables as needed.
|
java.lang.Object |
openConnection() |
protected void |
setSoapResponseHeaders(java.util.Map<javax.xml.soap.Name,java.lang.String> headers) |
protected abstract org.w3c.dom.Node |
unwrapSoapResponse(javax.xml.soap.SOAPMessage soapResponse)
Unwrap the SOAP response into a DOM Node.
|
canBeAsynchronous, canBeSynchronous, closeConnection, getConnectTimeout, getHttpHelper, getReadTimeout, getResponse, init, setRequestHeadersdirectInvoke, doInvoke, doLogging, execute, executePostScript, executePreScript, filterStubResponse, getAttribute, getErrorCode, getMaxTries, getResponseHeaders, getRetryInterval, getStubbedResponse, getStubResponse, getTimeoutForResponse, handleConnectionException, handleException, handleRetry, hasPostScript, hasPreScript, isRetryable, isStubMode, isSynchronous, logRequest, logResponse, logResponse, onFailure, setResponseHeadersexecutecloseDatabaseAccess, createDocument, createDocument, createDocument, createDocument, doCompatibilityCodeSubstitutions, evaluateExpression, executeScript, getActivityId, getActivityInstance, getActivityInstanceId, getActivityName, getAsset, getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValueAsVariableName, getAttributeValueSmart, getDocument, getDocumentContent, getDocumentForUpdate, getEngine, getEntryCode, getExternalEventInstanceDetails, getMainProcessDefinition, getMasterRequestId, getOutputDocuments, getPackage, getParameterId, getParameters, getParameterStringValue, getParameterType, getParameterValue, getParameterValue, getParentProcessId, getPerformanceLevel, getProcessDefinition, getProcessId, getProcessInstance, getProcessInstanceId, getProcessInstanceOwner, getProcessInstanceOwnerId, getProperty, getRequiredAttribute, getRequiredVariableValue, getReturnCode, getReturnMessage, getRuntimeContext, getScriptEvaluator, getScriptExecClassName, getScriptExecutor, getValue, getValueSmart, getVariableInstance, getVariableValue, getVariableValueSmart, getWorkTransitionInstanceId, initialize, isDisabled, isLogDebugEnabled, isLogInfoEnabled, isOutputDocument, lockActivityInstance, lockProcessInstance, logdebug, logexception, loginfo, logsevere, logtag, logwarn, openDatabaseAccess, prepare, setOutputDocuments, setParameterValue, setParameterValue, setParameterValueAsDocument, setParameterValues, setProcessInstanceCompletionCode, setReturnCode, setReturnMessage, setValue, setVariableValue, setVariableValue, startTransaction, stopTransaction, translatePlaceHolder, updateDocumentContent, updateDocumentInfo, updateDocumentInfo, valueIsJavaExpression, valueIsVariablepublic static final java.lang.String PROP_WSDL
public static final java.lang.String SOAP_VERSION
public static final java.lang.String SOAP_VERSION_11
public static final java.lang.String SOAP_VERSION_12
public static final java.lang.String SOAP_ACTION
public java.lang.Object openConnection()
throws com.centurylink.mdw.connector.adapter.ConnectionException
openConnection in interface com.centurylink.mdw.adapter.TextAdapteropenConnection in class HttpServiceAdaptercom.centurylink.mdw.connector.adapter.ConnectionExceptionprotected java.lang.String getRequestData()
throws com.centurylink.mdw.activity.ActivityException
getRequestData in class TextAdapterActivitycom.centurylink.mdw.activity.ActivityExceptionprotected abstract javax.xml.soap.SOAPMessage createSoapRequest(java.lang.Object requestObj)
throws com.centurylink.mdw.activity.ActivityException
com.centurylink.mdw.activity.ActivityExceptionpublic java.lang.String invoke(java.lang.Object connection,
java.lang.String request,
int timeout,
java.util.Map<java.lang.String,java.lang.String> headers)
throws com.centurylink.mdw.connector.adapter.ConnectionException,
com.centurylink.mdw.connector.adapter.AdapterException
invoke in interface com.centurylink.mdw.adapter.TextAdapterinvoke in class HttpServiceAdapterconnection - the connection object created in openConnection()request - the requestData populated in getRequestData()com.centurylink.mdw.connector.adapter.ConnectionExceptioncom.centurylink.mdw.connector.adapter.AdapterExceptionTextAdapter.invoke(java.lang.Object, java.lang.String, int, java.util.Map)public void onSuccess(java.lang.String response)
throws com.centurylink.mdw.activity.ActivityException,
com.centurylink.mdw.connector.adapter.ConnectionException,
com.centurylink.mdw.connector.adapter.AdapterException
onSuccess in interface com.centurylink.mdw.adapter.TextAdapteronSuccess in class TextAdapterActivityresponse - response message from the external systemcom.centurylink.mdw.activity.ActivityException - thrown when the post processing
logic hits an exception that needs to fail the activity.
This error is not auto-retriable, either.com.centurylink.mdw.connector.adapter.ConnectionException - this exception indicates a system connection
failure (most likely between the direct interfacing system to down
stream systems, as direct connection failure will not some to this method).
The exception is auto-retriable.com.centurylink.mdw.connector.adapter.AdapterException - thrown when the external system responded but
the response needs to be handled as a non-auto-retriable error.protected abstract org.w3c.dom.Node unwrapSoapResponse(javax.xml.soap.SOAPMessage soapResponse)
throws com.centurylink.mdw.activity.ActivityException,
com.centurylink.mdw.connector.adapter.AdapterException
com.centurylink.mdw.activity.ActivityExceptioncom.centurylink.mdw.connector.adapter.AdapterExceptionprotected java.lang.String getWsdlUrl()
throws com.centurylink.mdw.config.PropertyException
com.centurylink.mdw.config.PropertyExceptionprotected java.util.Map<javax.xml.soap.Name,java.lang.String> getSoapRequestHeaders()
protected java.util.Map<javax.xml.soap.Name,java.lang.String> getSoapResponseHeaders()
protected void setSoapResponseHeaders(java.util.Map<javax.xml.soap.Name,java.lang.String> headers)
protected void extractSoapResponseHeaders(javax.xml.soap.SOAPHeader header)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerExceptionprotected javax.xml.soap.SOAPMessage getSoapRequest(java.lang.String request)
throws java.io.IOException,
javax.xml.soap.SOAPException
java.io.IOExceptionjavax.xml.soap.SOAPExceptionprotected javax.xml.soap.SOAPMessage getSoapResponse(java.lang.String response)
throws java.io.IOException,
javax.xml.soap.SOAPException
java.io.IOExceptionjavax.xml.soap.SOAPExceptionprotected javax.xml.soap.MessageFactory getSoapMessageFactory()
throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPExceptionprotected javax.xml.soap.SOAPFactory getSoapFactory()
throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPExceptionprotected java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
TextAdapterActivitygetRequestHeaders in class HttpServiceAdapterprotected java.lang.String getSoapVersion()
protected java.lang.String getSoapAction()
public java.lang.String getAdapterInvocationErrorMessage()
TextAdapterActivityThis method allows the concrete adapters to define whatever they need for a decent error message. For instance they can include endpoint urls etc
getAdapterInvocationErrorMessage in interface com.centurylink.mdw.adapter.AdapterInvocationErrorgetAdapterInvocationErrorMessage in class TextAdapterActivityprotected com.centurylink.mdw.model.event.AdapterStubRequest getStubRequest(java.lang.String requestContent)
throws com.centurylink.mdw.connector.adapter.AdapterException
getStubRequest in class TextAdapterActivitycom.centurylink.mdw.connector.adapter.AdapterExceptionprotected org.json.JSONObject getRequestMeta()
throws java.lang.Exception
getRequestMeta in class TextAdapterActivityjava.lang.Exceptionprotected org.json.JSONObject getResponseMeta()
throws java.lang.Exception
getResponseMeta in class TextAdapterActivityjava.lang.Exceptionprotected java.lang.Long logRequest(com.centurylink.mdw.model.request.Request request)
logRequest in class TextAdapterActivity