SSL support in SOAPpy to build a SOAP server

johnmiloo at gmail.com johnmiloo at gmail.com
Thu May 11 15:36:33 EDT 2006


Can some one get me started with a  working SOAP server that works over
https. (SSL)?
I have M2Crypto installed and found the following sample, but something
is wrong in  ssl_context = SSL.Context()

Any help or tutorial appreciated?


    from SOAPpy import SOAPServer

    from M2Crypto import SSL

    def echo(s):
        return s+s # repeats a string twice

    ssl_context = SSL.Context()
    ssl_context.load_cert('server.pem')

    server = SOAPServer(("localhost",8443), ssl_context = ssl_context)
    server.registerFunction(echo)
    server.serve_forever()




More information about the Python-list mailing list