xmlrpc server running behind IIS as a CGI

Discussion in 'Python' started by Chris Curvey, May 2, 2005.

  1. Chris Curvey

    Chris Curvey Guest

    Here's my server:

    import os
    import SimpleXMLRPCServer

    class Foo:
    def settings(self):
    return os.environ
    def echo(self, something):
    return something
    def greeting(self, name):
    return "hello, " + name

    handler = SimpleXMLRPCServer.CGIXMLRPCRequestHandler()
    handler.register_instance(Foo())
    handler.handle_request()

    If I run this behind Apache/CGI, everything works fine. If I run this
    behind IIS/CGI, everything hangs when I call the server (I have
    confirmed that a "hello world" program runs fine thru CGI when called
    via a web browser).

    Here's the client program:

    import xmlrpclib
    server = xmlrpclib.ServerProxy("http://127.0.0.1:81/cms/Foo.py")
    print server.settings()
     
    Chris Curvey, May 2, 2005
    #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. =?Utf-8?B?Ymc=?=
    Replies:
    0
    Views:
    453
    =?Utf-8?B?Ymc=?=
    Dec 30, 2004
  2. Jitendra Singh via .NET 247
    Replies:
    1
    Views:
    873
    Brock Allen
    Mar 30, 2005
  3. Robert Dodier
    Replies:
    6
    Views:
    2,642
    Matthias Kraft
    Sep 14, 2004
  4. Etienne Posthumus
    Replies:
    1
    Views:
    1,410
    Roger Binns
    Apr 1, 2004
  5. Replies:
    1
    Views:
    385
    David M. Cooke
    Sep 22, 2005
  6. rodmc

    Running CGI from within CGI

    rodmc, Feb 14, 2008, in forum: Python
    Replies:
    3
    Views:
    574
    Bruno Desthuilliers
    Feb 14, 2008
  7. Mike MacHenry

    Simple CGI-XMLRPC failure

    Mike MacHenry, Jan 12, 2009, in forum: Python
    Replies:
    4
    Views:
    697
    Jeff McNeil
    Jan 13, 2009
  8. Replies:
    2
    Views:
    249
    Fábio Santos
    Jun 20, 2013
Loading...