../pvss.htm menu.gif basics.gif

xmlrpcClient

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

Synopsis

xmlrpcClient();

Parameters

    Parameter

    Meaning

    -

     

Description

Starts an XmlRpc client. The XmlRpc client is a Ctrl module that handles the calls in the background. There is an own 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.gifEXAMPLE

 

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 = ".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);

}

 

 

Member of

 

Availability

 

See also

xmlrpcConnectToServer(), xmlrpcCloseServer(), xmlrpcDecodeRequest(), xmlrpcEncodeResponse(), xmlrpcHandler(), xmlrpcCall()

 

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved

0