Hi,

Thanks to all you guys for the answers. I looked at the samples wsdd
files Dims pointed..,it's very useful. 

But I currently hit a ClassCastException when I am running my testing
program. It occurs when the WSDoAllSender handler is doing casting
things I guess. Shown below...

Cannot check logon status: org.apache.axis.ConfigurationException:
java.lang.ClassCastException: org.apache.ws.axis.security.WSDoAllSender
java.lang.ClassCastException: org.apache.ws.axis.security.WSDoAllSender
    at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDD
eployableItem.java:302)
    at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDe
ployableItem.java:274) 
 [snip]

What I did earlier are.. In my client wsdd file, I added lines such
like,

<handler type="java:org.apache.ws.axis.security.WSDoAllSender">
    <parameter name="action" value="Timestamp SAMLTokenUnsigned"/>
    <parameter name="samlPropFile" value="saml.properties"/>
</handler>

And for service side wsdd, I added..

<handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
    <parameter name="action" value="Timestamp SAMLTokenUnsigned"/>
    <parameter name="samlPropFile" value="saml.properties"/>
</handler> 

And I am using the default saml.properties file as provided without any
change for the moment. 

So if anyone knows anything about this ClassCastException when using
WSDoAllSender/WSDoAllReceiver handlers, could you please advise..

Many thanks,

jake



>-----Original Message-----
>From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
>Sent: 24 August 2005 03:46
>To: Jake Wu
>Cc: [email protected]; [email protected]
>Subject: Re: WSS4J and SAML
>
>see 
>ws-wss4j\interop\org\apache\ws\axis\oasis\Client_deploy.wsdd 
>and ws-wss4j\interop\org\apache\ws\axis\oasis\ping\deploy.wsdd
>
>thanks,
>-- dims
>
>On 8/23/05, Jake Wu <[EMAIL PROTECTED]> wrote:
>> Dear all,
>> 
>> Is there any existing sample on using WSDoAllSender/WSDoAllReceiver 
>> handlers with adding SAML assertion as token.
>> 
>> I would imagine it should be something like the following 
>fragment in 
>> the wsdd file, with specifying "action" parameter as 
>"SAMLToken", and 
>> configuring other necessary parameters including a proper saml 
>> properties file,etc. However I can't find any samples on this..
>> 
>> <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
>>      <parameter name="action" value="SAMLToken"/>
>>      <parameter name=... value=.../>
>>      <parameter name=... value=.../>
>>      <parameter name="SAMLPropFile" value= (some file)/> </handler>
>> 
>> 
>> If anyone has any experiences or advices on this problem, please 
>> advise..
>> 
>> Many thanks,
>> 
>> jake
>> 
>
>
>--
>Davanum Srinivas : http://wso2.com/ - Oxygenating The Web 
>Service Platform
>

Reply via email to