ConnectorTypeSOAP
class connector_types.connector_type_soap.ConnectorTypeSOAP
Call a SOAP service.
Input Schema
-
wsdl_urlThe URL to the WSDL document.
Type:
string -
usernameThe username used to authenticate.
Type:
anyOfOptions: -
passwordThe password used to authenticate.
Type:
anyOfOptions: -
methodThe method to call.
Type:
string -
argsPositional arguments to pass to the method call.
Type:
arrayItems: -
kwargsKeyword arguments to pass to the method call.
Type:
objectAdditional Properties:
TruePattern Properties:
-
.*Data
-
Output Schema
-
resultData
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)