Я переношу существующую службу с HTTP (Dev / UAT) на HTTPS (Production), и у меня проблемы с конфигурация. Вот раздел system.serviceModel моего web.config:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="false" />
<services>
<service name="MyService">
<endpoint name="MyEndpoint" address="" binding="wsHttpBinding"
bindingConfiguration="secureBinding" contract="IMyService" />
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="secureBinding">
<security mode="Transport"></security>
</binding>
</wsHttpBinding>
</bindings>
</system.serviceModel>
Я пробовал это, используя как basicHttpBinding
, так и wsHttpBinding
, с теми же результатами:
http://server.domain.com/MyService.
страница .svc показывает мне следующую ссылку:
https://boxname.domain.com/MyService.svc?wsdl
, а не ожидаемый
https://server.domain.com/MyService.svc?wsdl