title: SSLException: Unrecognized SSL message, plaintext connection error in AXIS java application
body: <p>I have java app that uses Axis to get data from web service. web service is accessed via HTTPS. It works fine on my local PC, but customer uses proxy. I added setting for proxy: </p>
  
  <pre><code>System.getProperties().put( "proxySet", "true" );
  System.getProperties().put( "proxyHost", host);
  System.getProperties().put( "proxyPort", port);
  Authenticator.setDefault(new Authenticator() {
      protected PasswordAuthentication getPasswordAuthentication() {
          return new PasswordAuthentication(username,
              password.toCharArray());
      }
  });
  </code></pre>
  
  <p>but customers get exception: </p>
  
  <pre><code>faultDetail: 
      {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
      at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)
      at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
      ...
  </code></pre>
  
  <p>Can anybody help here? </p>