Intermec CV30 Intermec Terminal Emulator (ITE) Programmer's Reference Manual - Page 166
About RPC XML in ITE
View all Intermec CV30 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 166 highlights
Appendix B - About RPC Implementation About RPC XML in ITE RPC XML in ITE is implemented as XMLRPC (see http://www.xmlrpc.com). This standard interface is simple, well supported, and has been implemented in many languages and on several platforms. It describes simple types using XML tags. For example, examples.getStateName 41 describes an examples.getStateName() function that takes a integer parameter whose value is 41. XMLRPC implementations normally translate function parameters into XMLRPC and unpack XML into their respective types. In the SourceForge implementation (http://xmlrpcpp.sourceforge.net) XMLRPC functions have the following physical prototypes: bool Client.execute(String functionName, XmlRpcValue parms, XMLRpcValue result); void Sever.execute(XMLRpcValue parms, XMLRpcValue result); For instance, to use XMLRPC to add numbers, the server code (the function that adds the numbers) in C++ using the SourceForge implementation is: void execute(XmlRpcValue& params, XmlRpcValue& result) { int nArgs = params.size(); double sum = 0.0; for (int i=0; i