we have an Nginx reverse proxy set to send traffic from:
https://ws.mydomain.com/staging/service.asmx
to our IIS Server 10:
http://localmachine/ws/staging/service.asmx
(sending ws.mydomain.com as host header)
The problem is that when we call https://ws.mydomain.com/staging/service.asmx?WSDL
the auto-generated wsdl shows a MIXED endpoint:
<soap:address location="http://ws.mydomain.com/ws/staging/service.asmx"/>
instead of
<soap:address location="https://ws.mydomain.com/staging/service.asmx"/>
I googled a lot but I couldn't find a way to force, via web.config, a specific URL - or to specify a base address (everything BEFORE service.asmx).