RE: xmlrpclib

Discussion in 'Python' started by Brian Quinlan, Oct 19, 2003.

  1. > I'm having trouble using xmlrpclib. I register a function (or class)
    > with the SimpleXMLRPCServer and initiate the server. I then create a
    > ServerProxy object and connect to the xml-rpc server. When I call a
    > registerd function or class member function I get the follwoing error.
    > I've attached the server and client source files.
    >
    >
    > File "D:\Python23\lib\xmlrpclib.py", line 742, in close
    > raise Fault(**self._stack[0])
    > xmlrpclib.Fault: <Fault 1: 'exceptions.TypeError:cannot marshal None
    > unless allo
    > w_none is enabled'>


    Both of your registered functions implicitly return None. None is not a
    valid XML-RPC type (though there is an extension with a NULL type). You
    can fix your code by adding "return 1" to the end of your functions.

    Cheers,
    Brian
     
    Brian Quinlan, Oct 19, 2003
    #1
    1. Advertising

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:
    384
    Larry
    Sep 16, 2003
  2. sashan

    xmlrpclib

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

    mod_python with xmlrpclib

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

    xmlrpclib timeouts

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

    Re: xmlrpclib timeouts

    p2esp, Mar 2, 2004, in forum: Python
    Replies:
    1
    Views:
    359
    Ross M Karchner
    Mar 2, 2004
Loading...

Share This Page