title: Configure wildcard SSL hostnameverifier in java
body: <p>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.</p>
  
  <p>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 <a href="https://stackoverflow.com/questions/13470998/ignoring-ssl-validation-in-java/13483271#13483271">this</a> question which describes how to write a custom HttpsURLConnection class. </p>
  
  <p><strong>Question</strong>: Now I don't understand how to call my web service methods (using a custom SoapConnection class) from DataOutputStream's writeBytes method?</p>
  
  <p>Note: 
  <br>1. Above linked question is ignoring the SSL validation. I will not do that. I found a <a href="http://jandrewthompson.blogspot.in/2010/04/weblogic-and-wildcard-ssl-certificates.html" rel="nofollow noreferrer">class</a> that allows wildcard certificate host names.
  <br>2. I forgot to mention that I am using weblogic 10.3.2.0 which does not allow wildcard certificates by default.</p>