[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rampart-dev
Subject:    Re: Using custom securitypolicy tokens in server side
From:       Amila Jayasekara <amilaj () wso2 ! com>
Date:       2011-03-31 5:17:13
Message-ID: AANLkTimJzq4e8i7qs2wj0Sqbb-V+vsZ2YmTUKYcdfcNp () mail ! gmail ! com
[Download RAW message or body]

Hi Shyameni,

I believe you implemented new token by extending "Token" class. If so
please override "serialize(XMLStreamWriter writer)" method. See
"serialize" method of UsernameToken for a better understanding.

Thanks
AmilaJ

On Tue, Mar 29, 2011 at 7:56 PM, Shyameni Wijekoon <shyameniw@gmail.com> wrote:
> hi all,
> We have implemented a new token in rampart-policy for authentication and
> created clients who use this token. Now we want to use it in server side and
> create services that accepts that token from clients.
>
> I have added this token in services.xml and deployed in
> tomcat/webapps/axis/services.
>
> <sp:SignedSupportingTokens
> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                 <wsp:Policy>
>                     <sp:CustomToken
> sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"
> />
>               </wsp:Policy>
> </sp:SignedSupportingTokens>
>
> When i tried to view the wsdl of the service it does not include the token i
> have added.
>
> <sp:SignedSupportingTokens
> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                 </wsp:Policy>
> </sp:SignedSupportingTokens>
>
> What can be the problem here? What are the changes i need to do to the
> standard axis war distribution in tomcat to make it work? we appreciate any
> assistance!
>
> --
> Thanks in Regards,
> Shyameni Wijekoon
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic