Skip to content

Fix service location in SOAP WSDL document

Vermaat requested to merge wsdl into master

By default, the first request to the SOAP service will trigger a build of the WSDL document, using the context (service location) from that request. For example, if the first request is on http://localhost/ and subsequent requests are on https://mutalyzer.nl/services/, they will not have a valid WSDL document.

This is actually what we do on our production infrastructure, where the service is tested (on localhost) after it has been started.

The fix is to force a build of the WSDL document and specifying the location to use.

http://spyne.io/docs/2.10/reference/server.html#spyne.server.wsgi.WsgiApplication

Merge request reports