ConnectorTypeSOAP
class connector_types.connector_type_soap.ConnectorTypeSOAP
Call a SOAP service.
Input Schema
-
wsdl_url
The URL to the WSDL document.
Type:
string
-
username
The username used to authenticate.
Type:
anyOf
Options: -
password
The password used to authenticate.
Type:
anyOf
Options: -
method
The method to call.
Type:
string
-
args
Positional arguments to pass to the method call.
Type:
array
Items: -
kwargs
Keyword arguments to pass to the method call.
Type:
object
Additional Properties:
True
Pattern Properties:
-
.*
Data
-
Output Schema
-
result
Data
Constants
ssl_context_inputs = ['check_hostname', 'client_cert', 'client_key', 'server_ca']Example
import flow_api
def handler(system: flow_api.System, this: flow_api.Execution, inputs: dict):
# 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)