title: WSDL xsd import from https to http:443 when deployed
body: <p>I have a legacy SOAP WS in my JAVA project (1.7) which is currently giving some trouble. In its WEB-INF/wsdl/*.wsdl file there is this block</p>
  
  <pre><code>&lt;xsd:schema&gt;
    &lt;xsd:import namespace="https://myUrl.com/" schemaLocation="myService_schema.xsd"/&gt;
  &lt;/xsd:schema&gt;
  </code></pre>
  
  <p>right after its deployment, when i download its wsdl via wget I get the following</p>
  
  <pre><code>&lt;xsd:schema xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="https://o2o-staging.beeweeb.com/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xsd:import namespace="https://myUrl.com/" schemaLocation="http://myUrl.com:443/service-ws/myService?xsd=myService_schema.xsd"/&gt;
  &lt;/xsd:schema&gt;
  </code></pre>
  
  <p>as you can see the xsd import address <a href="https://myUrl.com" rel="nofollow noreferrer">https://myUrl.com</a> becomes <a href="http://myUrl.com:443" rel="nofollow noreferrer">http://myUrl.com:443</a>, thus making the service inaccessible as nginx complains with a 400 error: The plain HTTP request was sent to HTTPS port</p>
  
  <p>I really did some searching and found no problem assimilated to this. Can somebody please explain to me what is going on, and how to possibly fix it? the namespace url https: //myUrl.com should really remain that way, and is it possible to avoi its becoming http: //myUrl.com:443 ?
  My server is Jboss 7.1</p>