title: Magento API says "looks like we got no XML document" but i am getting valid xml
body: <p>So i started building something like a wrapper class for the SOAP API of Magento 1.7.0.2 CE following the instructions <a href="http://devdocs.magento.com/guides/m1x/api/soap/introduction.html#Introduction-SOAP" rel="nofollow noreferrer">here</a></p>
  
  <pre><code>&lt;?php
      class magSoap
      {
          private $client;
          private $session;
  
          function __construct() 
          {
              $this-&gt;client = new SoapClient('http://localhost:7655/magento1702CE/index.php/api/soap/?wsdl');
              var_dump($this-&gt;client);
              file_put_contents("xml.txt",file_get_contents("http://localhost:7655/magento1702CE/index.php/api/soap/?wsdl"));
              $this-&gt;session = $this-&gt;client-&gt;login('test', '1234567890');
  
              echo "hello";
          }
  
          function test()
          {
              var_dump($this-&gt;client-&gt;call($this-&gt;session, 'sales_order.list'));
          }
      }
  
  ?&gt;
  </code></pre>
  
  <p>when i run the following code</p>
  
  <pre><code>$tester = new magSoap();
  $tester-&gt;test();
  </code></pre>
  
  <p>i get the following</p>
  
  <p><a href="https://i.stack.imgur.com/DVVGY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DVVGY.png" alt="error"></a></p>
  
  <p>googling the error the answer i keep seeing is that i got invalid XML so i navigated to the URL i used in <code>SoapClient</code> and <a href="https://i.stack.imgur.com/rjO2I.png" rel="nofollow noreferrer">i didn't see anything wrong</a>. then i created that <code>file_put_contents</code> line so i could output the xml to a <a href="http://pastebin.com/Rgakx4ev" rel="nofollow noreferrer">text file</a> and use <a href="https://www.wsdl-analyzer.com/" rel="nofollow noreferrer">this WSDL Analyzer</a> but doesn't show me any errors</p>
  
  <p><a href="https://i.stack.imgur.com/gcvnM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gcvnM.png" alt="report"></a></p>
  
  <p>the SOAP Login is test, the key is 1234567890, the SOAP Role has full access, i have disabled <em>"Auto-redirect to Base URL"</em>, php_soap is enabled in WAMP Server and PHP version is 5.6.25.</p>
  
  <p>Why is it this code still wont work?</p>