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 |
---|---|---|---|
log | list | ||
result | object |
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
details
log
details
one_of_inputs
details
run
details
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)