My question is basically to resolve a SSLException due to use of wildcard certificates in my web service calls. Now before people redirect me to any existing SO questions, please note that I am aware of using/creating a Custom hostnameverifier and setting it in weblogic.
My main problem is that since my application runs on a shared weblogic server, I am not allowed to do any changes to weblogic config.xml file. So, I need to do the host name verifier setting in my java code somehow. I came across this question which describes how to write a custom HttpsURLConnection class.
Question: Now I don't understand how to call my web service methods (using a custom SoapConnection class) from DataOutputStream's writeBytes method?
Note:
1. Above linked question is ignoring the SSL validation. I will not do that. I found a class that allows wildcard certificate host names.
2. I forgot to mention that I am using weblogic 10.3.2.0 which does not allow wildcard certificates by default.