Connecting with a client needs some simple steps:
TcpIpConnection conn ("localhost", 32000); HttpProtocol prot(&conn); Requester client(&prot); MethodCall testcall ("testcall"); testcall.addParam(Integer(123)); MethodResponse resp = client.call(testcall); cout << "call result: \n" << resp.getXml(0);
As always: set up the connection.
Select the desired method by its name. In the example the method takes one
parameter which is an
Send the call and wait for the response.
The example does no further processing but just shows the result as XML output.