Hi vinay,
Each security token has a namespace, in this case, according to the
WS-Security Specs,
the UsernameToken has the namespace
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd .
(This namespace is fixed, and you have to use always the same namespace for
Username tokens)
WSE uses this namespace to look for the token manager, which is a .NET
class. (If WSE doesn't find any configured token manager for the token's
namespace, it uses a default token manager for that token).
In your case, WSE can't load the class configured as token manager using the
attribute "type" (You should use the full qualified assembly name for that
type) , for example,
"MyNamespace.MyUsernameTokenManager, MyAssembly".
Another point to consider, "MyAssembly" should be in the GAC or the web site
"bin" folder.
Regards,
Pablo Cibraro
www.lagash.com
>I am trying to implement the UsernameTokenManager in WSE 3.0 and override
>the
[quoted text clipped - 44 lines]
> Regards
> Vinay
vinay - 26 Aug 2005 19:43 GMT
Hi Pablo
Thanks for the reply
I think i am missing something here or i am not understanding the concept
behind
regarding "MyNamespace.MyUsernameTokenManager, MyAssembly".
when you create a webservice project in visual studio 2005 and if you see
the code then you will find that there is no default namespace declared. Also
when you build the webservice, there is no "bin" folder generated and there
is no dll generated for that webservice as it is doing in visual studio 2003.
I know that in visual studio 2003 i am able to do this and also create custom
token manager working with WSE 2.0, but i am unable to understand why it is
not working in the new version of visual studio 2005 & WSE 3.0
So can you please let me know what has to be given for "MyNamespace" and
what should be done in visual studio 2005 to generate the dll for the
webservice project ???
Regards
Vinay
> Hi vinay,
> Each security token has a namespace, in this case, according to the
[quoted text clipped - 65 lines]
> > Regards
> > Vinay
Pablo Cibraro - 26 Aug 2005 21:42 GMT
Vinay,
Are the UsernameToken manager and the web service in the same web project ?.
If the token manager is implemented in other project, then you have to
reference it from the web service project.
"MyNamespace" is the namespace of your UsernameTokenManager class, if your
class doesn't have a namespace, then you don't have to specify it.
Maybe you can take a look to the "WSSecurityUsername" quickstart shipped
within WSE 3.0. It shows how to create and configure a custom username token
manager.
Regards,
Pablo Cibraro
www.lagash.com
> Hi Pablo
>
[quoted text clipped - 103 lines]
>> > Regards
>> > Vinay