如何在使用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;
       }

posted on 2008-09-26 17:28  非法操作  阅读(243)  评论(0编辑  收藏  举报

导航