This sample code shows how one can extend Microsoft .NET Framework WebServices to include SOAP message-based security. In particular, it demonstrates an approach to authenticating messages based on digital signature technology and encrypting these messages for confidentiality. While this sample leverages relevant standards activities, it is not based on an existing standard. All sample code is written in C#. This version is the first release on CNET Download.com.