On 06/24/12 23:53, azurIt wrote:
Hi,
i'm trying to set up an soap server on HTTP + HTTPS but i noticed one problem:
WSDL always contains HTTP only address, so soap client is using HTTPS only for
downloading WSDL. Is it, somehow, possible to include HTTP address in WSDL
garbbed via HTTP and HTTPS address in WSDL grabbed via HTTPS? Thnx!
hi azur,
not with the same wsdl. as you may know, it's generated once and cached
forever. if you want the url in the wsdl to be different, you have to
have two separate python processes for http and https.
that said, i'd always publish the https url without running separate
processes:
app = WsgiApplication(...)
from spyne.interface.wsdl import Wsdl11
wsdl = Wsdl11(self.app.interface)
wsdl.build_interface_document("https://example.com/some_app/?wsdl")
app._wsdl = wsdl.get_interface_document()
note that this is not part of the public api, so the _wsdl attribute can
change. i'll try to let you know when this happens though.
best,
burak
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap