ConnectorTypeSOAP
class connector_types.connector_type_soap.ConnectorTypeSOAP
Call a SOAP service.
Input Schema
-
schema_version = '10.0'Type:
string -
authenticationType:
anyOfOptions: -
schemeThe scheme to use.
Type:
anyOfOptions: -
hostThe remote hostname or IP address.
Type:
string -
portType:
anyOfOptions: -
pathThe path of the WSDL document.
Type:
stringDefault:
/ -
queryWill be urlencoded automatically
Type:
arrayItems: -
fragmentThe fragment of the URI.
Type:
string -
tlsIf to connect using TLS/SSL.
Type:
anyOfOptions: -
modeType:
anyOfOptions:
Output Schema
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',
authentication={
'authentication_method': 'username_and_password',
'username': '...',
'password': '...',
},
**flow_api.split_url('http://www.dneonline.com/calculator.asmx?wsdl', return_query_string_in_path=True),
mode={
'mode_name': 'call_soap_service',
'method': 'Add',
'args': [100, 200],
},
).get('output_value').get('result')
# result: 300
return this.success(message=result)