title: Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from '' : failed to load external entity
body: <p>This is the error I get:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
    WSDL: Couldn't load from
    '<a href="http://subdomain.example.com:105/Example/Example.asmx?WSDL" rel="nofollow noreferrer">http://subdomain.example.com:105/Example/Example.asmx?WSDL</a>' : failed
    to load external entity
    "<a href="http://subdomain.example.com:105/Example/Example.asmx?WSDL" rel="nofollow noreferrer">http://subdomain.example.com:105/Example/Example.asmx?WSDL</a>"</p>
  </blockquote>
  
  <p>as a result of this request:</p>
  
  <pre><code>$client = new SoapClient('http://subdomain.example.com:105/Example/Example.asmx?WSDL');
  </code></pre>
  
  <p>WHAT I TRIED:</p>
  
  <ol>
  <li><p>Accessing this exact resource from my localhost or web browser also works.</p></li>
  <li><p>Accessing other resources which don't have :105 works (if that could matter).</p></li>
  <li><p>Tried to do <code>socket_create_listen(105)</code> but gotten "Permission denied" error. Then tried to enable Port 105 via WHM by adding it firewall to the list of ports (IPv4, IPv4, TCP and UDP). All that still didn't work and there was no response from port 105.</p></li>
  <li><p>allow_url_fopen is switched On.</p></li>
  <li><p>default_socket_timeout is set to 300.</p></li>
  <li><p>Tried this answer: <a href="https://stackoverflow.com/a/7118802">https://stackoverflow.com/a/7118802</a>  (parameters that I changed are URL and port - which I changed to 105. Other parameters I've left literally identical, maybe that was a mistake?)</p></li>
  <li><p>As per some other SO answers, tried using https instead, doesn't work. Tried adding www. but that URL doesn't even exist.</p></li>
  <li><p>Tried echoing file_get_contents() as per this answer: <a href="https://stackoverflow.com/a/14729295/525445">https://stackoverflow.com/a/14729295/525445</a> - it gives me a blank screen.</p></li>
  <li><p>Tried this: <a href="https://stackoverflow.com/questions/4906871/fatal-error-uncaught-soapfault-exception-wsdl/5261188#5261188">Fatal error: Uncaught SoapFault exception: [WSDL]</a>  which has resulted in </p></li>
  </ol>
  
  <blockquote>
    <p>Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to
    host</p>
  </blockquote>
  
  <ol start="10">
  <li>Tried fetching it with cURL, as suggested here: <a href="https://stackoverflow.com/a/5311925/525445">https://stackoverflow.com/a/5311925/525445</a>   The response I got is bool(false)</li>
  </ol>