ConnectorTypeSOAP
class connector_types.connector_type_soap.ConnectorTypeSOAP
Call a SOAP service.
Inputs
Name | Type | Default | Description |
---|---|---|---|
args | list | None | Positional arguments to pass to the method call |
kwargs | dict | None | Keyword arguments to pass to the method call |
method | str | The method to call | |
password | str | None | The password used to authenticate |
username | str | None | The username used to authenticate |
wsdl_url | str | The URL to the WSDL |
Outputs
Name | Type | Default | Description |
---|---|---|---|
execution_id | int | The ID of the connection execution | |
log | list | ||
message | str | The ended message for the connection. If the connection ended with an error, the message will contain information about what went wrong | |
result | object | ||
status | str | The 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 = 1Methods
execute ()
log (message)
one_of_inputs (options)
run ()
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)