Как включить SSL для WCF webHttpBinding AJAX Ajax Enabled Service?

У меня есть служба WCF webHttpBinding AJAX Enabled, которую мне нужно настроить для SSL. SSL включен на сервере. Я знаю, как это сделать для basicHttpBinding, но не для webHttpBinding. Моя конфигурация:

<system.servicemodel>
 <behaviors>
 <endpointbehaviors>
 <behavior name="AlphaFrontEndSiteASP.TestsServiceAspNetAjaxBehavior">
 <enablewebscript>
 <webhttp>
 </webhttp></enablewebscript></behavior>
 <behavior name="AlphaFrontEndSiteASP.Services.TestsService">
 <enablewebscript>
 </enablewebscript></behavior>
 </endpointbehaviors>
 <servicebehaviors>
 <behavior name="MetadataBehavior">
 <servicemetadata httpgetenabled="true">
 </servicemetadata></behavior>
 <behavior name="">
 <servicemetadata httpgetenabled="true" httpsgetenabled="true">
 <servicedebug includeexceptiondetailinfaults="false">
 </servicedebug></servicemetadata></behavior>
 </servicebehaviors>
 </behaviors>
 <servicehostingenvironment **************************="true" multiplesitebindingsenabled="true">
 <services>
 <service name="AlphaFrontEndSiteASP.Services.TestsService" behaviorconfiguration="MetadataBehavior">
 <endpoint address="" behaviorconfiguration="AlphaFrontEndSiteASP.TestsServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="AlphaFrontEndSiteASP.Services.TestsService">
 <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex">
 </endpoint></endpoint></service>
 </services>
 </servicehostingenvironment></system.servicemodel>
1 ответ

<bindings>
 <webhttpbinding>
 <binding name="webHttpTransportSecurity">
 <security mode="Transport">
 </security></binding>
 </webhttpbinding>
</bindings>

licensed under cc by-sa 3.0 with attribution.