title: Java Web Service in Glassfish with https
body: <p>I'm trying to deploy a web service in Glassfish 3.1 which works with http and https. It works fine in http but when trying in https it says</p>
  
  <blockquote>
    <p>Error generating artifacts for the following WSDL
    https://<strong>*<em>.</em></strong>:8181/UserWebService/UserWebService?WSDL</p>
    
    <p>Possible causes can be invoking https when the application is not
    configured for security</p>
  </blockquote>
  
  <p>The server log says:</p>
  
  <blockquote>
    <p>Invalid request scheme for Endpoint UserWebService. Expected http . Received https</p>
    
    <p>Failed to parse metadata returned from server at ....</p>
    
    <p>[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.</p>
    
    <p>Failed to parse the WSDL.</p>
  </blockquote>
  
  <p>As I said, it works perfectly through http but it fails with https.</p>
  
  <p>What is wrong? Should I change anything in my NetBeans project?</p>
  
  <p>Thanks!</p>