XMLRPC pseudocode and script