Hi HansvL,
Yes, the correct way to do that is the following:
UsernameToken token = RequestSoapContext.Current.IdentityToken as
UsernameToken;
Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax
http://www.lagash.com
> Inside a webmethod I want to retrieve the username from the UsernameToken
> that is contained in the current SoapContext. With WSE2.0 I could use the
> SoapContext.Security member. However with WSE3.0 this property becomes
> obsolete. Is there an alternative way to retrieve the current
> UsernameToken?