Cannot force WCF to use both http and https for operation

I have a simple operation using pox using webHttpBinding and I define a security mode to enable HTTPS. Once I do this, I can no longer send HTTP traffic. I would like both. How to enable https while maintaining http?

+5
source share
1 answer

You will need to create a service with two WebHttpBinding endpoints. One endpoint will use HTTP (binding without transport security), and the second endpoint will use HTTPS (binding with transport security). You will also need to configure IIS to support HTTP and HTTPS (assign a certificate).

Question: if it is reasonable? If you really believe that your service should provide secure transport due to confidential data, then providing an unsecured endpoint at the same time does not seem like a good solution.
+4
source

All Articles