This email was created by [your name] who thought you would be interested in the following Article:
"The HTTP request is unauthorized with client authentication scheme 'Basic'"
There are several examples on the internet that focus on implementing a custom username password validator for a WCF service. Most of those samples are written using self-hosted applications and work as designed.
CodeProject also contains hundreds of articles, free source code samples and applications to help in your day to day programming. Why not give it a try!