title: Error with PHP SOAP and Magento WebService
body: <p>I have a cloud server with CentOS 6, Apache 2.2, PHP 5.4 and i have one site with Magento.
  And i try to use a Magento WebService and return this error:</p>
  
  <pre><code>SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://******.com/dev/index.php/api/soap/index/?wsdl=1' : failed to load external entity "http://******.com/dev/index.php/api/soap/index/?wsdl=1"
  </code></pre>
  
  <p>I search here and in google, and i try many changes in php.ini, but in all cases i don't have success.</p>
  
  <p>I read in some cases this is a problem in server side, for bad configuration.</p>
  
  <p>Note¹: SOAP is installed in server, in phpinfo() SOAP is enabled.</p>
  
  <p>Note²: On another server was working normally.</p>
  
  <p>Anyone have any ideia how to solve this?</p>
  
  <p>Edit: The server use WHM/CPanel and i use EasyApache for install Apache, PHP. And use default configuration.</p>
  
  <p>Edit2: This is just a simple sample code that uses the SOAP and error it returns:</p>
  
  <p>Code: (first line of this code is a line 9, and line 13 is "$cli = new SoapClient($api_url_v1);")</p>
  
  <pre><code>&lt;?php
      $api_url_v1 = "http://site.com/dev/api/soap/?wsdl=1";
      $username = '*********';
      $password = '*********';
      $cli = new SoapClient($api_url_v1);
      //retreive session id from login
      $session_id = $cli-&gt;login($username, $password);
      //call customer.list method
      $result = $cli-&gt;call($session_id, 'customer.list', array(array()));
  ?&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://site.com/dev/api/soap/?wsdl=1' : failed to load external entity "http://site.com/dev/api/soap/?wsdl=1" in /home/******/public_html/test_soap.php:13 Stack trace: #0 /home/******/public_html/test_soap.php(13): SoapClient-&gt;SoapClient('http://site...') #1 {main} thrown in /home/******/public_html/test_soap.php on line 13
  </code></pre>