XMLRPCLIB appears to be broken?
flamesrock
flamesrock at gmail.com
Thu Apr 6 00:59:31 EDT 2006
Hi,
I'm running xmlrpclib on python 2.4.2.
The problem:
When I pass arguments via xmlrpclib, it passes the args as a list to
the first variable.
Take this example (function should return second of two arguments, but
always returns '')
>>server = xmlrpclib.ServerProxy('http://simcitysphere.com/simnettest/simnet_XMLRPC.php')
>>server.simnet.createDB('firstparam','secondparam')
''
>>
Here is the php server code:
function createDB($firstparam,$secondparam)
{
return $secondparam;
}
If I change the function to return $firstparam, the first argument, it
returns:
['firstparam', 'secondparam']
So.. why the heck is it doing this???? Clearly it's pythons fault, but
1)why?
2)how do I fix it?
-Thanks in Advance.
More information about the Python-list
mailing list