The password callback class is also needed by the WSS4J to sign the message. The password callback class is used to get the passwrod for the private key to sign the message.
Cheers,
Ashok.
On 9/12/05, csj <[EMAIL PROTECTED]> wrote:
All -
I would like to be able to sign soap messages according the the
WS-Security spec using WSS4j. Currently I'm able to send singed messages
by setting up my service locater with a passwordCallbackClass..
<requestFlow>
<handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
<parameter name="user" value="User1"/>
<parameter name="passwordCallbackClass" value="PWCallback"/> -->
<parameter name="action" value="Signature"/>
<parameter name="signaturePropFile" value="crypto.properties" />
</handler>
</requestFlow>
This everything seems to work, my messages are singed and the user name
and password tokens are added and sent.
I would like to be able to send the same singed message without having to
use the user name and password tokens, so I figue removing the
passwordCallbackClass parameter in the requestFlow should do the trick...
<requestFlow>
<handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
<parameter name="action" value="Signature"/>
<parameter name="signaturePropFile" value="crypto.properties" />
</handler>
</requestFlow>
but when I remove these parameters from both the client and the server the
message is never even sent and I get the following error...
Exception in thread "main" AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: WSDoAllSender: Empty username for specified action
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:WSDoAllSender : Empty
username for specified action
at
org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:216)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java :32)
Any help would be great..
Thanks in advance
..Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Ashok Shah
