title: NetBeans - SOAP - SSL
body: <p>I come along with a problem I can’t fix by myself, even I’ve tried almost everything.
  I developed a SOAP web service with NetBeans (7.2.1) and Java (jdk1.7.0_09,jre7) using Glassfish (3.1.2.2) with Windows 7 as OS, and need to secure the connection through SSL.</p>
  
  <p>If I try to reach: </p>
  
  <pre><code>https://localhost:8181/secauth/Secauth?WSDL
  </code></pre>
  
  <p>I just see a blank page.
  The error in GlassFish status window is:</p>
  
  <blockquote>
    <p>“WARNING: Invalid request scheme for Endpoint Secauth. Expected http . Received https”</p>
  </blockquote>
  
  <p>What I did to secure the connection:</p>
  
  <ul>
  <li><p>Checked “Secure Service” in “Quality of Service” tab in NetBeans with option “Transport Security”</p></li>
  <li><p>Edited the “web.xml” with the security tab and added a "security constraint"</p>
  
  <pre><code>&lt;security-constraint&gt;
  &lt;display-name&gt;SSL&lt;/display-name&gt;
  &lt;web-resource-collection&gt;
      &lt;web-resource-name&gt;secauth&lt;/web-resource-name&gt;
      &lt;description/&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/web-resource-collection&gt;
  &lt;user-data-constraint&gt;
      &lt;description/&gt;
      &lt;transport-guarantee&gt;CONFIDENTIAL&lt;/transport-guarantee&gt;
  &lt;/user-data-constraint&gt;
  &lt;/security-constraint&gt;
  </code></pre>
  
  <ul>
  <li><p>I can call:</p>
  
  <pre><code>https://localhost:8181/secauth/
  </code></pre></li>
  </ul></li>
  </ul>
  
  <p>and recive:</p>
  
  <blockquote>
    <p>Hello World!</p>
  </blockquote>
  
  <hr>
  
  <p>So my question is:
  - What do I have to change to access WSDL over SSL ? / What occurs that problem above ?</p>
  
  <hr>
  
  <p>Use case: 
  Webservice is called from an android application with ksoap2, works fine with HTTP, but not with HTTPS.
  It seems that the "blank" page can not be parsed and some parsing errors appear.</p>
  
  <p>Thank you really much in advanced !
  Regards,</p>
  
  <p>Marcel</p>