I have an issue integrating some web service from WM7 to WM9. The web service consumer requires the certificate file while sending the request.
IS - define path of Trusted Certificates in IS–>Security–>Edit Certificates Settings --> CA Certificate Directory=config\security\cert\cas\
On Developer - in consumer we added a flow service before calling soap client
- pub.security.setKeyAndChain which we could locate privateKey (privatekey.der) and certFiles (cer1.der,cer2.der). Note that the certificates in full path.
- pub.client.soapClient which just send request out and it’s working fine
However, in WM9 the service pub.security.setKeyAndChain is deprecated and we are recommended to use pub.security.keystore.setKeyAndChain. So we made a few configuration on IS
IS - define KeyStore by going to IS–>Security --> Create Keystore Alias and Create Truststore Alias named “myKeyStore” for both Keystore alias and Truststore alias.
On Developer - in the same service of WSC we use
- pub.security.setKeyAndChain which set KeystoreAlias=myKeyStore and keyalias=mykeystore (get it while creating keystore)
- pub.client.soapClient which just send request out but we received the error…
org.apache.axis2.AxisFault: Error in obtaining a token
I’d like to know what configurations i missed setting. If you have any ideas, please help me out.
Thank you very much,