[Soap-Python] Spyne, URL in address location
Alex Railean
ralienpp at gmail.com
Fri Aug 24 18:11:08 CEST 2012
Hi,
My Spyne-powered server is generating a WSDL schema that reveals my
server's address, yet I prefer that a domain name is used instead.
Here is the bit I refer to:
<soap:address location="http://127.0.0.1:7789/testapp/?wsdl"/>
Having explored the code, I found that there's a function that takes
a URL at the input, and apparently - this is the code responsible for
generating that part of the schema. The function is
build_interface_document, but I did not find a part in the code that
calls it - thus I cannot figure out how to leverage this function's
possibilities.
If it is of any help, this is how the server is created:
from rpclib.util.wsgi_wrapper import run_twisted
app = Application([RegistrationService],
config.namespaceServer,
interface=Wsdl11(),
in_protocol=Soap11(validator='lxml'),
out_protocol=Soap11())
wsgi_app = WsgiApplication(app)
run_twisted(((wsgi_app, 'ra'),), config.listenPort, None)
My other question is Twisted-specific - how to define the listening
interface?
The examples here use a variable called 'host':
https://github.com/arskom/spyne/tree/master/examples/twisted
However, I only see that it is used to print some debug information,
whereas the twisted server itself is not related to it in anyway. What
am I missing?
Alex
More information about the Soap
mailing list