Qore YamlRpcClient Module Reference
1.1
|
defines a YAML-RPC client class More...
Inherits HTTPClient.
Public Member Functions | |
constructor (hash opts=hash(), bool do_not_connect=False) | |
calls the base class HTTPClient constructor, overrides the "protocols" key to "yamlrpc" More... | |
constructor (bool do_not_connect=False) | |
simple constructor using default arguments More... | |
any | callArgs (string method, any args) |
makes a call to the YAML-RPC server using the second argument as the list of arguments to send More... | |
any | callArgsWithInfo (reference info, string method, any args) |
makes a call to the YAML-RPC server using the third argument as the list of arguments to send More... | |
any | call (string method) |
makes a method call to the YAML-RPC server using the remaining arguments after the method name as the list of arguments to send More... | |
Static Public Member Functions | |
static string | makeRequest (string method, any arg, int flags=YAML::None) |
makes a YAML-RPC request string | |
Public Attributes | |
const | Version = "1.0" |
YAML-RPC Client Version. | |
const | DefaultOptions |
default options for the YamlRpcClient::constructor() | |
const | VersionString = sprintf("Qore-YAML-RPC-Client/%s", YamlRpcClient::Version) |
YAML-RPC Client Version String. | |
const | DefaultHeaders |
default HTTP headers | |
defines a YAML-RPC client class
The YamlRpcClient class will correctly serialize YAML-RPC messages, send them to the server, deserialize the responses and return a Qore-language data structure for the response.
YAML-RPC is a proprietary HTTP-based RPC protocol; for a description of the YAML-RPC protocol implemented by the YamlRpcClient class, see YAML-RPC Protocol Implementation.
"/YAML"
any YamlRpcClient::YamlRpcClient::call | ( | string | method | ) |
makes a method call to the YAML-RPC server using the remaining arguments after the method name as the list of arguments to send
method | the remote method to call |
result
key (see YAML-RPC Non-Error Responses), otherwise a hash is returned with an error
key containing the error information (see YAML-RPC Error Responses) any YamlRpcClient::YamlRpcClient::callArgs | ( | string | method, |
any | args | ||
) |
makes a call to the YAML-RPC server using the second argument as the list of arguments to send
method | the remote method to call |
args | the argument(s) to the call |
any YamlRpcClient::YamlRpcClient::callArgsWithInfo | ( | reference | info, |
string | method, | ||
any | args | ||
) |
makes a call to the YAML-RPC server using the third argument as the list of arguments to send
info | a reference to a hash with technical information about the call |
method | the remote method to call |
args | the argument(s) to the call |
YamlRpcClient::YamlRpcClient::constructor | ( | hash | opts = hash() , |
bool | do_not_connect = False |
||
) |
calls the base class HTTPClient constructor, overrides the "protocols" key to "yamlrpc"
opts | valid options are:
|
do_not_connect | if False (the default), then a connection will be immediately established to the remote server |
YamlRpcClient::YamlRpcClient::constructor | ( | bool | do_not_connect = False | ) |
simple constructor using default arguments
do_not_connect | if False (the default), then a connection will be immediately established to the remote server |