I am not sure that is the best way to do what you want.
You might want to look at ns_xmlrpc http://dev.openacs.org:8000/cvs/ns_xmlrpc/ to see how it decodes the values passed in an XMLRPC call.