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

List:       xmlrpc-user
Subject:    Re: wss4j empty password problem
From:       Colm O hEigeartaigh <coheigea () apache ! org>
Date:       2010-10-28 18:55:26
Message-ID: AANLkTinDSkeKYxWahBRfkYLNMZD1NkxFGbN9Sozx2afh () mail ! gmail ! com
[Download RAW message or body]

> <parameter name="password" value="   " />

I'm not sure if it's possible to set a password via configuration in
this way using the Axis1 handlers. If you change the value above to be
a non-empty String, do you get the same message? The correct way to
set a password is to write a password callback, as you have commented
out:

> <!--
> <parameter name="passwordCallbackClass" value="Test.PWCallback"/>
> ...
> -->

Colm.


On Thu, Oct 28, 2010 at 5:21 PM, ijaxahmed <ijaxahmed@gmail.com> wrote:
> 
> Hi Wss4j Team,
> 
> I am working Axis1.* with wss4j. I am facing problem and tried to find
> solution but couldn't successed  thats why sending you an email. i dont
> know, i should send this email here or not.
> the problem is, i have made one web service client with Axis1 and trying to
> access a web service which is made in c# .Net. so this web service required
> session token in message header. therefore i am using wss4j to send security
> header in
> the soap message. but the problem is i have to send empy(" ") password and
> due to that i got exception
> 
> org.apache.ws.security.WSSecurityException: WSHandler: application provided
> null or empty password
> at org.apache.ws.security.handler.WSHandler.getPassword(WSHandler.java:842)
> at
> org.apache.ws.security.action.UsernameTokenAction.execute(UsernameTokenAction.java:36)
>  at
> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:205)
> at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> at org.apache.axis.client.Call.invoke(Call.java:2767)
> at org.apache.axis.client.Call.invoke(Call.java:2443)
> at org.apache.axis.client.Call.invoke(Call.java:2366)
> at org.apache.axis.client.Call.invoke(Call.java:1812)
> at
> de.cas.open.server.api.eimws.EIMServiceHttpBindingStub.createObject(EIMServiceHttpBindingStub.java:6430)
>  at Test.TestCAS.TestCreateEvent(TestCAS.java:248)
> at Test.TestCAS.main(TestCAS.java:72)
> 
> 
> here is my client_deploy.xml
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> 
> <transport name="http"
> pivot="java:org.apache.axis.transport.http.HTTPSender"/>
> 
> <globalConfiguration >
> 
> <requestFlow >
> 
> <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
> 
> <parameter name="action" value="UsernameToken"/>
> 
> <parameter name="user"
> value="9B88888EBD24439EA1FDAFDBFBDB3217~61793C2553AABB4AA2A3F189D47F66B9@C-CM-T01"/>
>  
> <parameter name="passwordType" value="PasswordText" />
> 
> <parameter name="password" value="   " />
> <!--
> <parameter name="passwordCallbackClass" value="Test.PWCallback"/>
> 
> <parameter name="passwordType" value="PasswordDigest"/>
> -->
> 
> </handler>
> 
> </requestFlow >
> 
> </globalConfiguration >
> 
> </deployment>
> 
> 
> PLease help me , i will be very thankful to you.
> 
> Regards,
> ijaz
> --
> View this message in context: \
> http://old.nabble.com/wss4j-empty-password-problem-tp30078281p30078281.html Sent \
> from the WSS4J mailing list archive at Nabble.com. 
> 


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

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