I am trying to create a secure webservice.
Here is the contract and service implementation
[ServiceContract()] public interface ICalculatorService {
If you run self hosted WCF service (without IIS) you can enable anonymous clients just by adding to the config file (in server) the next settings:
Also, set clientCredentialType to "InheritedFromHost":
References:
Using Multiple Authentication Schemes with WCF
Understanding HTTP Authentication