Posted by john7sp
on November 1, 2008 at 9:02 AM PDT
I have a https webservice running in weblogic 9.2. While calling that I am getting
But when I write a standalone program with main() in my local machine and call the webservice its working fine !!. But when I write a client using the same code and put it inside a .war file and deploy in weblogic 9.2 server and then call,... it is giving the error.
This is what I did.
1. I generated the client using "weblogic.wsee.tools.anttasks.ClientGenTask"
2. downloaded the .der file from firefox after I accessed the wsld(https://abcserver.com/......wsdl ). and created the keystore by keytool -import -alias servercert -file server.der -keystore server.keystore.
3. added in client code
System.setProperty("javax.net.ssl.trustStorePassword","password"); and then called the webservice.
Funny thing is that with the same code if I write a stand alone client with public static void main() it is able to call the webservice properly . But if I write the same code and package it in .war file and deploy in WLS 9.2 it is giving the above mentioned error. Another thing even though I set "javax.net.ssl.trustStore" with the absolute path of server.keystore file,while I print the values in jvm, it never shows up. but all other values are properly shown.
Could any one help . plz ... it is urgent !!