'How to get a struct value from xmlrpc_c::clientSimple call result
I have started using XML-RPC for C/C++ (Xmlrpc-c) library on an embedded device, to implement a simple client application.
I need to use xmlrpc_c::clientSimple class to setup a request message as follows:
xmlrpc_c::paramList getParams;
getParams.add("userName");
getParams.add("password");
xmlrpc_c::clientSimple myClient;
xmlrpc_c::value result;
myClient.call("serverUrl", "verifyAccount", tokenGetParams, &result);
I see there are utilities to get int, string (etc.) values from result variable:
xmlrpc_c::value_string(result);
xmlrpc_c::value_int(result);
...
What if I get a more than a variable as result of my RPC call? For example if the result is made up of an int value and a string, should I convert xmlrpc_c::value to a struct? What is the best way to do that?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
