keyword arguments for xml-rpc

P

proteusguy

I've just noticed that I can't seem to use keyword arguments for
xml-rpc requests even though the protocol itself encodes parameter
names, types, and values when it sends the xml across the network.
This becomes a bit problematic for me because I want to store some XML-
RPC method dispatch signatures in a database and can't easily
guarantee parameter order when I load it so being able to pass a
dictionary of name/value pairs greatly eases the development effort
and helps assure correct methods get invoked. Is this a limitation of
the SimpleXMLRPCServer, the xmlrpclib.ServerProxy, or something
completely different?
 
D

Diez B. Roggisch

I've just noticed that I can't seem to use keyword arguments for
xml-rpc requests even though the protocol itself encodes parameter
names, types, and values when it sends the xml across the network.
This becomes a bit problematic for me because I want to store some XML-
RPC method dispatch signatures in a database and can't easily
guarantee parameter order when I load it so being able to pass a
dictionary of name/value pairs greatly eases the development effort
and helps assure correct methods get invoked. Is this a limitation of
the SimpleXMLRPCServer, the xmlrpclib.ServerProxy, or something
completely different?

I don't see[1] the possibility to pass keyword arguments via XMLRPC. Where
did you get that impression from? You can pass structs though, maybe that
confused you?


Diez

[1] http://www.xmlrpc.com/spec
 
P

proteusguy

Diez,

Yes thanx - that (structs) is indeed where my confusion lies... :)
Alas, ordered parameters it is.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top