Matt Mannion
1/8/2003 12:23:00 AM
Hodge,
Did you see the message I posted under Scott's reply to
my message? The problem I was having was an error on my
part. I failed to return the the exact same password
from the IPasswordProvider.GetPassword method as I used
in my client when I instantiated the UsernameToken class.
To test is out, you can use the same simple string in
both the client and the web service.
IPasswordProvider.GetPassword can be one line of code
that returns just the simple string. Once you get it
working with a simple hard-coded string, you can add more
complex logic to derive the password to return.
HTH,
Matt
>-----Original Message-----
>"Matt" <mmannion@claritycon.com> wrote in message
news:<059301c2b598$d3e8c8e0$8df82ecf@TK2MSFTNGXA02>...
>> I am trying to build a simple sample webservice and
>> client that will pass a username and password in the
SOAP
>> header.
>>
>> My sample works fine if I pass only the username, but
if
>> I try to pass the password, I get an exception:
>> Microsoft.Web.Services.Security.SecurityFault:
>> The security token could not be authenticated or
>> authorized.
>>
>> Any ideas on what the problem is?
>> Thanks in advance.
>>
>> Matt
>
>I'm having the same problem. I posted a message a week
ago, and I
>never received a response. Someone at MS, please help!
>.
>