wcf service wsdl domain name

When creating a new WCF and hosting locally or dev/prod server you might come across an issue where WSDL will display a URL with computer/local name which is different to URL of service

Fro example actual URL might be


And WSDL URL will be


To fix this we can add following configuration in serviceBehaviors section of config

<serviceMetadata httpsGetEnabled=”true”/>
<add scheme=”https” port=”443″/>

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>