Fix service location in SOAP WSDL document
Compare changes
Files
4+ 4
− 4
@@ -185,10 +185,10 @@ REVERSE_PROXIED
@@ -196,7 +196,7 @@ JSON_ROOT_URL
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