ConnectorTypeXMLRPC
class connector_types.connector_type_xmlrpc.ConnectorTypeXMLRPC
Call a XMLRPC service.
Input Schema
-
schema_versionType:
string -
authenticationType:
anyOfOptions: -
schemeThe scheme to use.
Type:
anyOfOptions: -
hostThe remote hostname or IP address.
Type:
string -
portType:
anyOfOptions: -
tlsIf to connect using TLS/SSL.
Type:
anyOfOptions: -
pathThe path of the XMLRPC endpoint.
Type:
stringDefault:
/ -
modeType:
anyOfOptions: -
encodingThe encoding to use when binary data is returned by the server.
Type:
stringDefault:
utf-8
Output Schema
-
resultData
Example
import flow_api
def handler(system: flow_api.System, this: flow_api.Execution, inputs: dict):
result = this.connect(
connector_type='XMLRPC',
authentication={
'authentication_method': 'username_password_basic',
'username': '...',
'password': '...',
},
host='...',
path='...',
mode={
'mode_name': 'call_function',
'function_name': '...',
'args': [...],
'kwargs': {...},
},
).get('output_value')['result']