Previous Topic

Next Topic

Book Contents

Book Index

RPC

If you are a developer and do not wish to use the COM you can use the RPC calls directly without any libraries from IceWarp. All you need to know is the RPC usage. Read about RPC at http://www.xmlrpc.com/

The API resides at http://server[:32000]/rpc/ and that is the URL you need to direct the RPC calls to.

There is a special way how to handle API classes over the RPC. See example below:

// The request below creates a new instance of the APIObject on the remote server

// The output will be the instance id of the handle you need to use for subsequent class calls

<?xml version="1.0"?>

<methodCall>

<methodName>0->Create</methodName>

<params>

<param>

<value>IceWarpServer.APIObject</value>

</param>

</params>

</methodCall>

// The call below assumes we already have the class instance which is 123456 from the server and thus

// need to specify it. We call the GetProperty method of the API class and request the c_version property.

<?xml version="1.0"?>

<methodCall>

<methodName>123456->GetProperty</methodName>

<params>

<param>

<value>c_version</value>

</param>

</params>

</methodCall>