This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am trying to consume secured WCF service. I am trying to consume it using Netbeans IDE. Its WSDL contains <X509Certificate> elements, which contains Base64 encoded certificate. I cropped this certificate into separate file and imported it into truststore.
My client uses username and password authentication, so i filled in valid username and password and I refer to my truststore from WSDL file. BUt when I try to run my client, I got following exception:
INFO: WSP5018: Loaded WSIT configuration from file: file:/C:/Users/belovic/Documents/NetBeansProjects/ETR3/build/classes/META-INF/wsit-client.xml.
account info for cos1
15.11.2012 10:50:28 com.sun.xml.wss.impl.misc.DefaultCallbackHandler$X509CertificateValidatorImpl validate
SEVERE: WSS1533: Validation of self signed certificate failed.
15.11.2012 10:50:28 com.sun.xml.wss.jaxws.impl.SecurityClientTube processRequest
WARNING: Could not validate the the server certificate
Here is relevant part of svc.xml document with reference to truststore