Tengo mi servicio WCF ejecutándose con HTTPS, muestra la página de información, pero la URL siguiente "Para probar este servicio, ... con la siguiente sintaxis:" es:URL incorrecto en un hipervínculo WSDL al usar WCF (https)
svcutil.exe https://servername.group.service.com/MyService.svc?wsdl
(dirección completa del servidor)
en lugar de la URL correcta https://my.service.com/MyService.svc?wsdl (hostheader asignado), ¿cómo puedo conseguirlo para mostrar la URL derecha (<URL of the Service> + ?wsdl
)?
<services>
<service name="MyService" behaviorConfiguration="MyServer.MyServiceBehavior">
<endpoint binding="basicHttpBinding" bindingConfiguration="basicHttpBigStrings" contract="IMyService">
</endpoint>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MyService.MyServiceBehavior">
<serviceCredentials>
<serviceCertificate findValue="my.service.com" x509FindType="FindBySubjectName"/>
</serviceCredentials>
<serviceMetadata httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="basicHttpBigStrings">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
<readerQuotas maxStringContentLength="1048576" />
</binding>
</basicHttpBinding>
</bindings>
Ya he intentado cambiar <serviceMetadata httpsGetEnabled="true"/>
en <serviceMetadata httpsGetEnabled="true" httpsGetUrl="https://my.service.com/MyService.svc"/>
pero sólo dice: "El registro ya existe para URI https://my.service.com/MyService.svc"
Tengo el mismo problema. ¿Encontraste una solución en esto? – Turrau
No, hasta ahora, lo siento ... – Hinek
¿Está alojando este servicio en IIS? Si es así, IIS determina esa URL, no WCF. –