I am struggling to deploy a web service to run exclusively over HTTPS.
When I access the ServiceName.svc I am presented with the URL to the WSDL definition schema but the URL is incorrect.
The URL is appearing like:
https://my-server-name/ServiceName/blah.svc?wsdl
Even when I substitute my-server-name with my Domain name the URLS in the WSDL definition still point to my-server-name and not the domain.
However, when I switch the service back to work over HTTP the definition is fine.
My Web.Config has the following configuration:
I really hope someone can help!!
<services>
<service name="API.Authorise"
behaviorConfiguration="API.AuthoriseBehavior">
<host>
<baseAddresses>
<add baseAddress="https://www.mydoamin.com/API/Authorise.svc"/>
</baseAddresses>
</host>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
<endpoint address="" contract="API.IAuthorise" binding="basicHttpBinding" bindingConfiguration="https" />
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="https" maxReceivedMessageSize ="50000000"
messageEncoding="Mtom" maxBufferPoolSize="50000000" >
<readerQuotas maxDepth="500000000"
maxArrayLength="500000000" maxBytesPerRead="500000000"
maxNameTableCharCount="500000000" maxStringContentLength="500000000" />
<security mode="Transport" />
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="API.AuthoriseBehavior">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>