Please specify the Web Service that you need to consume, for example, Does it use WS-Security?, if so, you have to configure the ws-security-client flie to reference the keystore and trustore.
Peraphs by your post the error messages relates to public key in trutstore file. Rmemeber that you have to add the cert to keystore and trsutore file.
It's an internal web service so I can't post the url. How would I know if it uses WS-Security.
Are you saying I have to add the cert to BOTH the keystore and truststore? If so is the truststore just another keystore?
I am no asking you for URL Web Service, I am asking you for security configuration.
"How would I know if it uses WS-Security"
Re: If the Web Service is implemented using metro you can see it in security service configuration file.
Respect to keystore, really, you only have to add the cert to truststore because there is where java looks for trust certificates that comes with messages (server sends a message and signs and/or encrypts it whit a cert).