title: PHP can't access WSDL file with SoapClient or file_get_contents
body: <p>Re-edited to re-frame with new information.</p>
  
  <p>I am trying to access a SOAP API via PHP. The application with the API is hosted on my corporate network and the WS is exposed on port 8080.</p>
  
  <p>I can access the WSDL file on <a href="http://network-machine.local:8080/service?wsdl" rel="nofollow">http://network-machine.local:8080/service?wsdl</a> in my browser (it loads very fast). However, the following pieces of code simply result in a fatal error of maximum execution time exceeded:</p>
  
  <pre><code>new SoapClient('http://network-machine.local:8080/service?wsdl');
  
  file_get_contents('http://network-machine.local:8080/service?wsdl');
  </code></pre>
  
  <p>PHP can access other remote services (including WSDL).</p>
  
  <p>If I save the wsdl file (and its imported files) to my local machine and update the references, PHP can access the API services just fine. It just can't pull in the WSDL.</p>
  
  <p>So, I assume it's some kind of networking/firewall issue. Any ideas?</p>
  
  <p>Edit with more info:</p>
  
  <p>cURL works just fine. With cURL I can get the total size of the WSDL file. When I use that size as the MAXLENGTH parameter of file_get_contents, that function works OK too.</p>