Note that there are some explanatory texts on larger screens.

plurals
  1. POWrong URL in WSDL hyperlink when using WCF (https)
    text
    copied!<p>I got my WCF Service running with HTTPS, It shows the Infopage, but the URL below "To test this service, ... with the following syntax:" is:</p> <p><code>svcutil.exe https://servername.group.service.com/MyService.svc?wsdl</code> (full address of the server)</p> <p>Instead of the correct URL <a href="https://my.service.com/MyService.svc?wsdl" rel="noreferrer">https://my.service.com/MyService.svc?wsdl</a> (assigned hostheader), how can I get it to show the right URL (<code>&lt;URL of the Service&gt; + ?wsdl</code>)?</p> <pre><code>&lt;services&gt; &lt;service name="MyService" behaviorConfiguration="MyServer.MyServiceBehavior"&gt; &lt;endpoint binding="basicHttpBinding" bindingConfiguration="basicHttpBigStrings" contract="IMyService"&gt; &lt;/endpoint&gt; &lt;endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/&gt; &lt;/service&gt; &lt;/services&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="MyService.MyServiceBehavior"&gt; &lt;serviceCredentials&gt; &lt;serviceCertificate findValue="my.service.com" x509FindType="FindBySubjectName"/&gt; &lt;/serviceCredentials&gt; &lt;serviceMetadata httpsGetEnabled="true"/&gt; &lt;serviceDebug includeExceptionDetailInFaults="true"/&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="basicHttpBigStrings"&gt; &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="None"/&gt; &lt;/security&gt; &lt;readerQuotas maxStringContentLength="1048576" /&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; </code></pre> <p>I already tried to change <code>&lt;serviceMetadata httpsGetEnabled="true"/&gt;</code> into <code>&lt;serviceMetadata httpsGetEnabled="true" httpsGetUrl="https://my.service.com/MyService.svc"/&gt;</code> but it just says: "A registration already exists for URI <a href="https://my.service.com/MyService.svc" rel="noreferrer">https://my.service.com/MyService.svc</a>"</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload