xmlrpcClient

Starts an XmlRpc client. The XmlRpc client is a Ctrl module that handles the calls in the background.

Synopsis

xmlrpcClient();

Parameters

Parameter Description
-

Description

Starts an XmlRpc client. The XmlRpc client is a Ctrl module that handles the calls in the background. There is a separate function xmlrpcConnectToServer() to establish a connection to the server.

Return value

The function always returns 0 (Void functions are not used in the CONTROL language).

EXAMPLE

Connect to the server as follows, call the function on the server as well as close the connection to the server:

#uses "CtrlXmlRpc"
main()
{
  string id = "servID";
  string func = "wccoa.own.testmethod";
  dyn_mixed args = makeDynString("World");;
  mixed res;
  string host = "localhost";
  int port = "80";
  bool secure = FALSE;
  xmlrpcClient();
  xmlrpcConnectToServer(id, host, port, secure);
  xmlrpcCall(id, func, args, res);
  DebugN("Result of XmlRpc call", res);
  xmlrpcCloseServer(id);
}

Assignment

XML RPC

Availability

CTRL