Hi,
I have created a key pair each for the client and the server side. I then imported the client's public key into the server's keystore. Now, my client-deploy.wsdd looks like this
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<transport name="http" pivot="java
rg.apache.axis.transport.http.HTTPSender"/>
<globalConfiguration >
<requestFlow >
<handler type="java
rg.apache.ws.axis.security.WSDoAllSender" >
<parameter name="action" value="UsernameToken Encrypt"/>
<parameter name="user" value="wss4j"/>
<parameter name="passwordCallbackClass" value="com.comp.webservice.PWCallback"/>
<parameter name="passwordType" value="PasswordDigest"/>
<parameter name="addUTElement" value="Nonce Created" />
<parameter name="encryptionPropFile" value="client_crypto.properties" />
<parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier" />
<parameter name="encryptionUser" value="privkey" />
<parameter name="encryptionParts"
value="{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}UsernameToken" />
</handler>
</requestFlow >
</globalConfiguration >
</deployment>
and my server-deploy.wsdd looks like this
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="SayHelloService" provider="java:RPC">
<requestFlow>
<handler type="java
rg.apache.ws.axis.security.WSDoAllReceiver">
<parameter name="passwordCallbackClass" value="PWCallback"/>
<parameter name="action" value="UsernameToken Encrypt"/>
<parameter name="decryptionPropFile" value="server_crypto.properties" />
</handler>
</requestFlow>
<parameter name="className" value="com.comp.webservice.SayHelloService"/>
<parameter name="allowedMethods" value="*"/>
</service>
</deployment>
Everything seems to be right, yet when I run the client, it says
IOException: Keystore was tampered with, or password was incorrect
What am I doing wrong... I'm guessing its a very fundamental mistake that I'm not able to notice. Please help me if you have any clues of how to go about solving this one.
Thanks in advance.
- Neha.