Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1529

WCF with custombinding on both http and https

$
0
0

I have a WCF service with custombinding and it is working fine on either http or https. But I have totally no idea about how can I make it available on both http and https?

Also is it possible to do that?

Here's my configuration in web.config.

<system.serviceModel><serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/><behaviors><serviceBehaviors><behavior name=""><serviceMetadata httpsGetEnabled="true" />                    <serviceDebug includeExceptionDetailInFaults="false" /></behavior>         </serviceBehaviors></behaviors><bindings><customBinding>                     <binding name="customBinding0"><binaryMessageEncoding /><httpsTransport /></binding></customBinding></bindings><services><service name="MyWCFService">                           <endpoint address="" binding="customBinding" bindingConfiguration="customBinding0"            contract="MyWCFService" /><endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /></service>      </services>

Thanks


Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>