Today I have encountered with a problem which is about soap address location of WCF service WSDL. While we were developing service there were no error about this issue. Whenever service is needed to publish to test environment which is configured with ssl binding, i have relaized that there were some addresses that are not accesible over the internet in wsdl of service. For example soap address location of service should be like that
<soap:address location=”https://uygulamalar.mydomain.com/EbelgeServis/EBelgeServis.svc”/> instead of <soap:address location=”https://machinename/EbelgeServis/EBelgeServis.svc”/>.
The address which contains machine name is not resolved by client who are trying to access web service over internet.
To solve this problem, we need to find the solution in IIS hosted web services There may be more than one web site in your IIS. Therefore you need to find your WebsiteId, you can find your websiteId while trying numbers begin from 0.
The following code sets the server bindings with name what your domain is.
set /w3svc/WebsiteId/ServerBindings “:443:uygulamalar.mydomain.com”