SecurityContextToken is expected but not present
- From: Genius Logics <GeniusLogics@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 27 Nov 2007 06:46:05 -0800
I am a newbie to WSE and I am using WSE 3.0. Scenario is that I have created
server side certificate using makecert tool and added it to client side as
present in the batch file that comes with the tool.
I am trying to use usernameForCertificateSecurity with the x509 created by
me. I have created the server side policy and by debuggin i see that it does
come in the CustomUsernameTokenManager.AuthenticateToken that I have created.
Soon as this function returns the password that I have set as the token
username (also sending the same from client side) i get the favourite
"Security requirements are not satisfied because the security header is not
present in the incoming message."
exception on client side. When I trace in the inputtrace.webinfo I see that
the real exception is "Exception thrown: SecurityContextToken is expected but
not present in the security header of the incoming message."
I have set the UsernameTokenProvider on client as follows
assertion.UsernameTokenProvider = new UsernameTokenProvider(username,
username);
Anyone who can guide me what I can be missing. I have tried to duplicate the
whole sample of WSSecurityUsername that came with WSE 3.0
All help is appretiated. I really need this urgently.
Thanks.
Atif
.
- Prev by Date: Re: Problem generating code with wsdl
- Next by Date: Connection Error with Web Service
- Previous by thread: Re: Problem generating code with wsdl
- Next by thread: Connection Error with Web Service
- Index(es):
Relevant Pages
|