My wsdl put a wrong domain in address location, How to fix it?
-
-
The initial response is correct. The default URL in the WSDL is dependent upon the URL used to access the WSDL.
The way my team handled changing service URLs in the past (for instance, transitioning from a development to a testing or production environment) is to use wsdl.exe to generate a code proxy for your web service (a proxy is actually created by making a web or service reference as well, but is not displayed in Visual Studio by default), you can edit the generated proxy class to read the service's URL from (??) wherever you want to store it - database, config file etc.