Hi,
First of all, congratulations for soaplib, it works very good for me
so far :-)
I've modified the client.py in version 0.7.2 rc27 to support HTTPS and
I have it working.
On the server side, you only need the lines below in order to have it
running on https:
server = CherryPyWSGIServer(('localhost' ,17777), MyService())
server.ssl_private_key = '/fullpath/file.key'
server.ssl_certificate = '/fullpath/file.pem'
server.start()
On the client side, given the patch attached you'd call the service
like this:
self.clientInfoService = make_service_client('localhost:17777/',
MyService(), https=True)
Patch: cat client.py.0.7.2r27.diff
76c76
< def __init__(self,host,path,descriptor):
---
> def __init__(self,host,path,descriptor, https):
84a85
> self.https = https
132c133,137
< conn = httplib.HTTPConnection(self.host)
---
> if self.https:
> conn = httplib.HTTPSConnection(self.host)
> else:
> conn = httplib.HTTPConnection(self.host)
>
173c178
< def __init__(self,host,path,server_impl):
---
> def __init__(self,host,path,server_impl, https):
179c184
<
setattr(self,
method.name,SimpleSoapClient(host,path,method))
---
> setattr(self,
method.name,SimpleSoapClient(host,path,method, https))
181c186
< def make_service_client(url,impl):
---
> def make_service_client(url,impl,https=False):
183c188
< return ServiceClient(host,path,impl)
---
> return ServiceClient(host,path,impl, https)
Cheers ! :-)