lunes, 31 de enero de 2011

Habilitar SSL en un WCF (Https)

Para habilitar el SSL en un WCF el web.config debe contener las siguientes instrucción:

<system.serviceModel>


<behaviors>    


 <endpointBehaviors>


  <behavior name="TestServiceAspNetAjaxBehavior">


   <enableWebScript />


  </behavior>


 </endpointBehaviors>


</behaviors>


<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />


<services>


 <service name="TestService">


  <endpoint address="" behaviorConfiguration="TestServiceAspNetAjaxBehavior"


   binding="webHttpBinding" bindingConfiguration="webBinding" contract="TestService" />


 </service>


</services>


 <bindings>


   <webHttpBinding>


     <binding name="webBinding">


       <security mode="Transport">


       </security>


     </binding>


   </webHttpBinding>


 </bindings>


</system.serviceModel>
 
Locations of visitors to this page