An example WCF project that demonstrates several security configurations
This project is an example of how you can setup security in WCF, namely how you should use the Transport, Message and TransportWithMessageCredential security modes
Full description here