Skip to content

Web Services Actions

Web Services Actions allows Marvin to connect with SOAP Web Services in a simple way.

Actions

webservice.create_wsdl_client

Creates a SOAP Web Service client to consume remote services, based on the WSDL file.

Parameters:

wsdl_url - URL to WSDL file of the SOAP Web Service

Returns:

soap_client - SOAP Web Service client to use with invoke action

Exceptions:

This action gives no Exceptions

Usage Example
script.mvn
webservice.create_wsdl_client('http://www.dneonline.com/calculator.asmx?wsdl')

webservice.invoke

Send message to a specific Teams channel

Parameters:

soap_client - SOAP Web Service client created by webservice.create_wsdl_client

function_parameters - From the second paramter on, you will pass the SOAP function parameters, as defined on WSDL file.

Returns:

response - SOAP function response

Exceptions:

NotificationFailed - Returns the error if message could not be delivered on channel webhook

Usage Example
script.mvn
webservice.create_wsdl_client('http://www.dneonline.com/calculator.asmx?wsdl')
webservice.invoke($client, 'Add', 10, 20)
prompt.alert(f'Result: {$response}')

webservice.invoke($client, 'Multiply', 10, 20)
prompt.alert(f'Result: {$response}')