xmlrpcCloseServer()

Closes the connection to the server.

Synopsis

xmlrpcCloseServer(string id);

Parameters

Parameter Description
id The server ID

Description

Closes the connection to the server.

Return value

The function returns TRUE if the call was executed successfully and FALSE in case of errors.

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