[spyne] accessing the wsdl

Burak Arslan burak.arslan at arskom.com.tr
Sat May 24 10:09:41 UTC 2014


Hello Joseph,

On 24/05/14 01:00, Joseph L. Casale wrote:
> I am dealing with what appears to be a broken client that is accessing a service I wrote.
>
> Does spyne have a facility to control where the wsdl is exposed? As a result of current
> setup, I am unable to leverage redirect/rewrites for this.

You can use the wsdl event of the WsgiApplication

     wsgi_app = WsgiApplication(...)

     def _on_wsdl(ctx):
         print ctx.transport.wsdl # set this to whatever you want

     wsgi_app.event_manager.add_listener('wsdl', _on_wsdl)

Best regards,
Burak



More information about the people mailing list