My application requires a username/password authentication. I downloaded
wss4j and added the handler information in the wsdd file as below
<handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
<parameter name="passwordCallbackClass"
value="org.apache.ws.security.WSPasswordCallback"/>
<parameter name="action" value="UsernameToken"/>
</handler>
All i have is the receiver. I am not coding the client, as that is out of
our scope. All i know is a webservice request as shown below hits the server
and it should be processed as it has the username and password information.
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext">
<wsse:UsernameToken>
<wsse:Username>admin</wsse:Username>
<wsse:Password Type="wsse:PasswordText">abc</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<m:getSupportedeWorkflows
xmlns:m="http://ebizformedia.com/services/ebizregistry/">
<m:requestDateTime>2001-12-17T09:30:47-05:00</m:requestDateTime>
<m:UUID>a25088d9-096a-4d83-8936-9fb8a9cd18bc</m:UUID>
<m:TP>TP1</m:TP>
<m:TPEnum>Name</m:TPEnum>
<m:mediaType>Spot-Radio</m:mediaType>
<m:purchaseType>Local</m:purchaseType>
</m:getSupportedeWorkflows>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I use XML Spy to send this request to the server and i get an exception
saying cannot instantiate WSPasswordCallback class. Where is this error
occurring? On the client side? as i am using XML Spy and no way of having a
WSPasswordCallback class? I am confused..Should i implement wss4j on the
client side and have an implementation of PasswordCallback class which then
gets the password? Should the server not read the password from the
webservice request??
--
View this message in context:
http://www.nabble.com/PasswordCallBack-tf4394988.html#a12532484
Sent from the WSS4J mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]