How we can achieve these in WCF?
In case of WCF client access the service via endpoint exposed by service. Endpoint composed of Address, Binding and Contract.
Out of these, binding defines: -
- What kind of security should be implemented
- What kind of encoding should be used etc?
In wsHttpBinding and netTCPBinding security will be enabled by default. It makes sure that all three aspects of security are achieved.