HTTP Send SOAP request function

Send a SOAP request with a raw XML envelope and parse the XML response.

Help CentreBuilding Processes

This article describes the RPA HTTP functionality to send a SOAP request.

For a full list of available functions, please read HTTP functions.


Description

The Send SOAP request function sends a SOAP request with a raw XML envelope to a SOAP web service endpoint and parses the XML response. This is useful for integrating with legacy enterprise services that use SOAP/WSDL.


Setting it up

To use the Send SOAP request function, follow these instructions:

{{popups:rpas/add:action=api-soap}}

Once on a process map:

  1. Navigate to the process where you would like to add the Send SOAP request function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the Send SOAP request option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
NameNoText-The alias of a previously created session (from api-session)
URLYesText-The SOAP endpoint URL
ActionNoText-The SOAPAction header value (required by some WSDL definitions)
EnvelopeYesText-The raw XML SOAP envelope to send
HeadersNoJSON-Additional headers for this request
TimeoutNoNumber-Request timeout in seconds
VariableNoTextresponseVariable name to store the response

Output variables

VariableTypeDescription
{response}ObjectThe response object with the parsed XML body

Errors

ErrorDescription
Connection failedUnable to establish a connection to the SOAP endpoint
Invalid XMLThe envelope is not valid XML
SOAP faultThe SOAP service returned a fault response

Tips

  • Set the SOAPAction header when required by the WSDL definition
  • Use variables in the envelope XML for dynamic values (e.g. {invoice_number})
  • Check the WSDL documentation for the correct envelope structure

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.