如何在使用WSE3.0的Server端取得UserToken
string test = "";
string tokenStr = string.Empty;
UsernameToken token;
SecurityContextToken tokens = RequestSoapContext.Current.IdentityToken as SecurityContextToken;
if (null != tokens)
{
token = tokens.BaseToken as UsernameToken;
test = token.Password;
}