ConnectorTypeXMLRPC
class connector_types.connector_type_xmlrpc.ConnectorTypeXMLRPC
Call a XMLRPC service.
Input Schema
-
schema_version
Type:
string
-
authentication
Type:
anyOf
Options: -
scheme
The scheme to use.
Type:
anyOf
Options: -
host
The remote hostname or IP address.
Type:
string
-
port
Type:
anyOf
Options: -
tls
If to connect using TLS/SSL.
Type:
anyOf
Options: -
path
The path of the XMLRPC endpoint.
Type:
string
Default:
/
-
mode
Type:
anyOf
Options: -
encoding
The encoding to use when binary data is returned by the server.
Type:
string
Default:
utf-8
Output Schema
-
result
Data
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']