title: soapclient returns failed to load external entity
body: <p>I try to consume a simple webservice using PHP unfortunately I get the following error messages wich (as it seems to me) say that the SOAP URL can not be opened, but in the Browser it does work fine (http://www.webservicex.net/uklocation.asmx?WSDL).</p>
  
  <p>Any Idea where is my mistake?</p>
  
  <p>The Errormessages:</p>
  
  <blockquote>
    <p>Warning:
    SoapClient::SoapClient(http://www.webservicex.net/uklocation.asmx?WSDL)
    [soapclient.soapclient]: failed to open stream: Connection timed out
    in /home/sia-deutschland_de/www/tests/test.php on line 14</p>
    
    <p>Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning
    : failed to load external entity
    "http://www.webservicex.net/uklocation.asmx?WSDL" in
    /home/sia-deutschland_de/www/tests/test.php on line 14 Exception
    Error!</p>
    
    <p>SOAP-ERROR: Parsing WSDL: Couldn't load from
    'http://www.webservicex.net/uklocation.asmx?WSDL' : failed to load
    external entity "http://www.webservicex.net/uklocation.asmx?WSDL"</p>
  </blockquote>
  
  <p>And my code:</p>
  
  <pre><code>&lt;?php
  // include the SOAP classes
  require_once('nusoap.php');
  
  try { 
              $options = array( 
                  'soap_version'=&gt;SOAP_1_2, 
                  'exceptions'=&gt;true, 
                  'trace'=&gt;1, 
                  'cache_wsdl'=&gt;WSDL_CACHE_NONE 
              ); 
              $client = new SoapClient("http://www.webservicex.net/uklocation.asmx?WSDL", $options); 
      // Note where 'Get' and 'request' tags are in the XML 
  
  
  //$client = new soapclient("http://www.webservicex.net/uklocation.asmx?WSDL", $options);
  
  $err = $client-&gt;getError();
  if ($err) {
  // Display the error
  echo 'client construction error: ' . $err ;
  } else {
  $answer = $client-&gt;call(’GetUKLocationByCounty’,
  array(
  'Country'=&gt;'London'));
  
  $err = $client-&gt;getError();
  if ($err) {
  // Display the error
  echo 'Call error: ' . $err;
  print_r($client-&gt;response);
  print_r($client-&gt;getDebug());
  } else {
  print_r($answer);
  }
  }
  
  
  
  } catch (Exception $e) { 
      echo "&lt;h2&gt;Exception Error!&lt;/h2&gt;"; 
      echo $e-&gt;getMessage(); 
  }
  ?&gt;
  </code></pre>