title: Magento Soap Error - Premature end of data in tag definitions line 2
body: <p>My client is using Unleashedsoftware.com to connect to a Magento Store. But it gives this error.</p>
  
  <pre><code>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;SOAP-ENV:Body&gt;
          &lt;SOAP-ENV:Fault&gt;
              &lt;faultcode&gt;WSDL&lt;/faultcode&gt;
              &lt;faultstring&gt;
                  SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.domain.com/index.php/api/v2_soap/index/wsdl/1/' : Premature end of data in tag definitions line 2
              &lt;/faultstring&gt;
          &lt;/SOAP-ENV:Fault&gt;
      &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>When browsing  <a href="http://www.domain.com/index.php/api/v2_soap/index/" rel="nofollow">http://www.domain.com/index.php/api/v2_soap/index/</a> Firebug gives me “500 Internal Service Error”.  </p>
  
  <p>When I browse <a href="http://www.domain.com/index.php/api/v2_soap/index/wsdl/1/" rel="nofollow">http://www.domain.com/index.php/api/v2_soap/index/wsdl/1/</a>, I am getting valid XML data.</p>
  
  <p>I checked the server log files and it seems like:</p>
  
  <pre><code>[Thu Aug 30 22:22:25 2012] [warn] [client 92.92.92.92] mod_fcgid: stderr:  in /home/doaminuser/public_html/lib/Zend/Soap/Server.php on line 762
  </code></pre>
  
  <p>I been searching for couple of days now and today I tried to duplicate the entire site to another test server, and it seems to be working!  So that seems to be a server issue. </p>
  
  <p>Please, anybody got any idea what could be the issue?</p>
  
  <p>Is there any better way of debugging this issue, any sample code or debugging tips.</p>
  
  <p>Magento version is 1.6.2</p>
  
  <p>Thank you.</p>