I am developing web services in C# using WCF and I want to create a custom way of handling security. I have found this way to retrieve the username out of the soap message that was sent to web service:
String username = System.ServiceModel.ServiceSecurityContext.Current.PrimaryIdentity.Name;
I was wondering if there was a similar way to retrieve the password from the SOAP message?
Thanks