Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > keyword arguments for xml-rpc

Reply
Thread Tools

keyword arguments for xml-rpc

 
 
proteusguy@gmail.com
Guest
Posts: n/a
 
      03-19-2007
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?

 
Reply With Quote
 
 
 
 
Diez B. Roggisch
Guest
Posts: n/a
 
      03-19-2007
wrote:

> 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
 
Reply With Quote
 
 
 
 
proteusguy@gmail.com
Guest
Posts: n/a
 
      03-19-2007
Diez,

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


On Mar 19, 5:44 am, "Diez B. Roggisch" <d...@nospam.web.de> wrote:
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: keyword checker - keyword.kwlist Hamilton, William Python 4 05-13-2007 06:31 AM
keyword checker - keyword.kwlist tom@finland.com Python 6 05-10-2007 04:53 PM
Keyword arguments in a block, possible with zero arguments? Peter Motzfeldt Ruby 1 03-13-2007 01:33 PM
Difference between default arguments and keyword arguments Edward Diener Python 14 04-05-2004 11:26 PM
logging module: log method with keyword arguments David Konerding Python 0 09-09-2003 11:40 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57