xmlrpclib with technorati

Discussion in 'Python' started by Alan Little, Dec 15, 2004.

  1. Alan Little

    Alan Little Guest

    I'm trying to write a generic weblog update notifier using xmlrpclib,
    starting with technorati. What I want to do is something like this :

    XML config file that would look like this:

    <server url="http//whatever,technorati.org"
    methodname="technoratiMethod">
    <param sequence="1" source="myAttrib1" />
    <param sequence="2" source="myAttrib2" />
    </server>
    <server .... another server

    and code that would do this (pseudocode):

    for serverconfig in xml.findall('server')
    put params in sortedParamList
    server=xmlrpclib.ServerProxy(serverconfig .attrib['url'])
    server.methods[serverconfig
    ..attrib['methodName']](*sortedParamList)

    However, technorati's xml-rpc server gives a permissions error when I
    try to call MethodList(). I don't know whether or how I can call a
    method on an xml-rpc server by binding the method name rather than
    hard-coding it without having access to MethodList()

    For bonus points: anybody know if it possible to get xmlrpclib to send
    non-ascii parameter values (I know this would be a violation of the
    utterly brain-dead xml-rpc spec)
     
    Alan Little, Dec 15, 2004
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Larry
    Replies:
    0
    Views:
    444
    Larry
    Sep 16, 2003
  2. sashan

    xmlrpclib

    sashan, Oct 19, 2003, in forum: Python
    Replies:
    0
    Views:
    527
    sashan
    Oct 19, 2003
  3. Michael

    mod_python with xmlrpclib

    Michael, Feb 26, 2004, in forum: Python
    Replies:
    0
    Views:
    418
    Michael
    Feb 26, 2004
  4. p2esp

    xmlrpclib timeouts

    p2esp, Mar 2, 2004, in forum: Python
    Replies:
    2
    Views:
    419
    Graham Dumpleton
    Mar 3, 2004
  5. p2esp

    Re: xmlrpclib timeouts

    p2esp, Mar 2, 2004, in forum: Python
    Replies:
    1
    Views:
    436
    Ross M Karchner
    Mar 2, 2004
  6. Roger Binns

    Another issue in xmlrpclib

    Roger Binns, Apr 4, 2004, in forum: Python
    Replies:
    0
    Views:
    327
    Roger Binns
    Apr 4, 2004
  7. Graeme Matthew

    xmlrpclib

    Graeme Matthew, Aug 31, 2004, in forum: Python
    Replies:
    4
    Views:
    527
    Roger Binns
    Aug 31, 2004
  8. Paul Duncan

    [ANN] Technorati-Ruby 0.1.0

    Paul Duncan, Sep 29, 2004, in forum: Ruby
    Replies:
    2
    Views:
    149
    Paul Duncan
    Sep 29, 2004
Loading...