On Fri, Jan 18, 2013 at 4:19 PM, Ken Prows <[email protected]> wrote:

> I found out from here
> [http://www.mail-archive.com/[email protected]/msg00582.html] that the
> wsdl file is generated once and then cached. That is nice, of course.
> My issue is that I want to allow multiple sub-domains to access the
> same service. Currently, the first sub-domain that hits ?wsdl will
> cause that particular sub-domain to be embedded in the wsdl's
> <soap:address/> element. Later, when a different sub-domain asks for
> the ?wsdl, it will incorrectly get the <soap:address/> sub-domain from
> the first request.
>
> My attempt to remedy this was to sub-class the Wsdl11 interface class
> and override the "get_interface_document" method. I wanted to change
> it so that before returning the cached etree from __wsdl, it would
> change the soap:address element to be the domain from the current
> request. There does not seem to be any way to tell the application to
> use a different interface though.
>
> Is there another, more obvious way to solve this? If not, I will
> likely just modify the source. I wanted to ask here first though.
>

In the meantime, I ended up hacking it up:
https://github.com/xevo/spyne/blob/master/spyne/server/wsgi.py

All the changes are in __handle_wsdl_request.
I know this only fixes it for the wsdl server type. For now though, it
works for me.

Ken
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to