Soap Address Location is machine name not domain name(website)

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=””/>  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.

%systemroot%\system32\cscript.exe //nologo
enum /w3svc/WebsiteId



The following code sets the server bindings with name what your domain is.

%systemroot%\system32\cscript.exe //nologo
set /w3svc/WebsiteId/ServerBindings “”



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s