I asked a similar question:
How to force one method in WCF Rest to be called via https, while others can be called via http
And it doesn't seem like it's possible on the code side. Is it possible to configure the entire service only for HTTPS? I configured the service using the following binding:
<webHttpBinding>
<binding name="webBinding"
maxBufferSize="152428800" maxReceivedMessageSize="152428800"
receiveTimeout="00:10:00">
<readerQuotas maxStringContentLength="152428800"
maxArrayLength="152428800"
maxBytesPerRead="4096"/>
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</webHttpBinding>
But when I try to call a simple service via http, the service returns the result successfully, instead of returning some kind of exception. Do I need to configure IIS only to serve HTTPS requests? Has anyone tried this?
Thank!
source
share