This documentation is for WSO2 Enterprise Integrator version 6.1.1 . View documentation for the latest release in the 6.x.x family and the latest release in the 7.x.x family.

All docs This doc
Skip to end of metadata
Go to start of metadata

BPMN SOAP tasks allow you to invoke SOAP endpoints within your BPMN processes. This can be achieved by adding a SOAP Task and handling the SOAP invocation part in a process implementation. EI-Business Process has provided this functionality out of the box to avoid the hassle of doing implementations by process developers.

Adding a SOAP task to a process

  1. Create a BPMN process and a BPMN diagram. For instructions, see Creating a BPMN Process.
  2. Drag and drop a SOAP Task from the tools palette in the place where you need to invoke the endpoint. 
    Drag and drop a SOAP task
  3. Go to the Properties panel of the SOAP Task and select the Main config tab. 
  4. Enter values for the following fields appropriately, as shown in the example below.

    Field NameString ValueRequired/Optional
    Service URL URL of the target endpointRequired
    Input PayloadRequest payloadOptional
    SOAP HeadersSOAP header block, which is attached to the SOAP header when creating the SOAP requestOptional
    SOAP versionSoap version to be used when creating the SOAP request (i.e., SOAP11 or SOAP12)Required
    HTTP ConnectionControl options for the current connection. ('keep-alive' is the the default value.)Optional
    HTTP Transfer EncodingThe form of encoding, which is used to safely transfer the entity to the userOptional
    Output Variable nameName of the variable to save the responseRequired
    Transport headers

    Header values in the format

    "headerName0":"headerValue0","headerName1":"header Value2"

    SOAP task properties

The following configuration provides an example definition to use as the SOAP task.

	xmlns:omgdi="" typeLanguage="" expressionLanguage="" targetNamespace="">
	<process id="myProcess" name="My process" isExecutable="true">
		<serviceTask id="servicetask1" name="SOAP Task" activiti:class="org.wso2.carbon.bpmn.extensions.soap.SOAPTask" activiti:extensionId="org.wso2.developerstudio.bpmn.extensions.soapTask.SOAPTask">
				<activiti:field name="serviceURL">
				<activiti:field name="payload">
				<activiti:field name="headers">
         env:mustUnderstand="0"&gt;MyValue: From the server&lt;/headers:ServerHeader&gt;
				<activiti:field name="soapVersion">
				<activiti:field name="httpConnection">
				<activiti:field name="outputVariable">
				<activiti:field name="soapAction">
				<activiti:field name="transportHeaders">
	<bpmndi:BPMNDiagram id="BPMNDiagram_myProcess">
		<bpmndi:BPMNPlane bpmnElement="myProcess" id="BPMNPlane_myProcess">
			<bpmndi:BPMNShape bpmnElement="servicetask1" id="BPMNShape_servicetask1">
				<omgdc:Bounds height="55.0" width="105.0" x="340.0" y="60.0"></omgdc:Bounds>
  • No labels