Calls the function "function" on the server with the arguments of the parameter "args". If "result" is specified, the function waits for the answer from the server and saves the answer in "result". This corresponds to the call result = function(args[1], ...); |
Synopsis
int xmlrpcCall(string id, string function, dyn_mixed args [, mixed result]); |
Parameters
Parameter |
Meaning |
id |
Id of the server. |
function |
The function that is called on the server. |
args |
The argument with which the function on the server is called. |
result |
The answer from the server is saved in this parameter. |
Return value
If an error occurs, -1 is returned. 0 means that the call could be sent successfully. If the call was executed successfully can be queried using getLastError(). |
Description
Calls the function "function" on the server with the arguments of the parameter "args". If "result" is specified, the function waits for the answer from the server and saves the answer in "result". This corresponds to the call result = function(args[1], ...); |
EXAMPLE
Connect to the server as follows, call the function on the server as well as close the connection to the server:
|
Member of
|
Availability
|
See also
xmlrpcConnectToServer(), xmlrpcCloseServer(), xmlrpcClient(), xmlrpcDecodeRequest(), xmlrpcEncodeResponse(), xmlrpcHandler() |
V 3.11 SP1
Copyright