xmlrpc server running behind IIS as a CGI

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Curvey

    xmlrpc server running behind IIS as a CGI

    Here's my server:

    import os
    import SimpleXMLRPCSer ver

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

    handler = SimpleXMLRPCSer ver.CGIXMLRPCRe questHandler()
    handler.registe r_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.Serve rProxy("http://127.0.0.1:81/cms/Foo.py")
    print server.settings ()

Working...