Closed bohui closed 4 years ago
I have the same problem. If I remove the lines here https://github.com/mosquito/aiohttp-xmlrpc/blob/master/aiohttp_xmlrpc/handler.py#L90-L93 and simpy calling the methods without kwargs. From what I can see in the native xmlrpc library kwargs are simply not supported and should be removed?
Fixed in 1.0.0
Thanks, works like a charm!
Hi,
This is a great project and exactly what I am looking for. However when I did some test on server code, it responds inconsistently with python native xmlrpc library. Here is my parameter:
aiohttp-xmlrpc will parse it as one argument list with 2 elements(100 and 200) and one named argument with 2 keys(
key1
andkey2
), while python3's native xmlrpc will parse it as one argument list with 3 elements ((100, 200, {'key1': 1, 'key2': 2})
) Here is the code I use for native xmlrpc:server on aiohttp-xmlrpc one:
I called the same method of
args_kwargs
on client side. But results are 4 for aiohttp-xmlrpc and 3 for xmlrpc. (BTW, I use https://xmlrpc.devzing.com/ tool to call rpc service which is running locally and tunnelled by ngork).I think
xmlrpc
is doing the right way. Maybe there are some configurations I missed or some tests I did incorrectly?