Skip to main content
Version: 6 - Palatschinke

ConnectorTypeSOAP

class connector_types.connector_type_soap.ConnectorTypeSOAP

Call a SOAP service.

Inputs

NameTypeDefaultDescription
argslistNonePositional arguments to pass to the method call
kwargsdictNoneKeyword arguments to pass to the method call
methodstrThe method to call
passwordstrNoneThe password used to authenticate
usernamestrNoneThe username used to authenticate
wsdl_urlstrThe URL to the WSDL

Outputs

NameTypeDefaultDescription
execution_idintThe ID of the connection execution
loglist
messagestrThe ended message for the connection. If the connection ended with an error, the message will contain information about what went wrong
resultobject
statusstrThe ended status for the connection. Either "success" or "error".

Constants

input_list = ['args', 'kwargs', 'method', 'password', 'username', 'wsdl_url'] output_list = ['log', 'result'] ssl_context_inputs = ['check_hostname', 'client_cert', 'client_key', 'server_ca'] version = 1

Methods

Example

import flow_api

def handler(system: flow_api.System, this: flow_api.Execution):
# call SOAP service calculator with Add method
result = this.connect(
connector_type='SOAP',
wsdl_url='http://www.dneonline.com/calculator.asmx?wsdl',
method='Add',
args=[100, 200]
).get('output_value').get('result')
# result: 300
return this.success(message=result)