title: wsimport by setting https.protocol to TLSv1.2
body: <p>I want to import a web service using wsdl. The server is using TLSv1.2.  </p>
  
  <p>Using java code I connect to the server by setting <code>System.setProperty("https.protocols", "TLSv1.2");</code> </p>
  
  <p>How do I do the same while using wsimport? I'm using Java 1.7.0_65.</p>
  
  <p>When I tried  <code>wsimport &lt;wsdl-url&gt;</code> I'm getting</p>
  
  <pre><code>parsing WSDL...
  
  
  [ERROR] Received fatal alert: protocol_version
  
  Failed to read the WSDL document: https://&lt;server-name&gt;/Test/Test/Transform?wsdl, because 1) could not find the document; /2) the document cou
  ld not be read; 3) the root element of the document is not &lt;wsdl:definitions&gt;.
  
  
  [ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):
  
   At least one WSDL with at least one service definition needs to be provided.
  
  
      Failed to parse the WSDL.
  </code></pre>