title: NuSoap soapClient call getting "Premature end of data in tag html" error
body: <p>I'm trying to call a webservice that I've created, but the server is returning the following error:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from '<a href="http://www.savepoints.com.br/server.php?WSDL" rel="noreferrer">http://www.savepoints.com.br/server.php?WSDL</a>' : Premature end of data in tag html line 2 in /home/storage/a/39/1c/site1365816459/public_html/cliente.php:5 Stack trace: #0 /home/storage/a/39/1c/site1365816459/public_html/cliente.php(5): SoapClient->SoapClient('<a href="http://www.save" rel="noreferrer">http://www.save</a>...') #1 {main} thrown in /home/storage/a/39/1c/site1365816459/public_html/cliente.php on line 5</p>
  </blockquote>
  
  <p>Here I show my two scripts:</p>
  
  <p><strong>server.php (it's the WSDL server)</strong></p>
  
  <pre><code>&lt;?php
  
  require('classes/nusoap/nusoap.php');
  
  $server = new soap_server();
  
  $server-&gt;configureWSDL('stockserver', 'urn:stockquote');
  
  $server-&gt;register('getStockQuote',
      array('symbol' =&gt; 'xsd:string'),
      array('return' =&gt; 'xsd:decimal'),
      'urn:stockquote',
      'urn:stockquote#getStockQuote');
  
  $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
  
  $server-&gt;service($HTTP_RAW_POST_DATA);
  
  ?&gt;
  </code></pre>
  
  <p><strong>cliente.php</strong></p>
  
  <pre><code>&lt;?php
  
  require('classes/nusoap/nusoap.php');
  
  $c = new SoapClient('http://www.savepoints.com.br/server.php?WSDL');
  
  $stockprice = $c-&gt;call('getStockQuote',array('symbol' =&gt; 'ABC'));
  
  echo "The stock price for 'ABC' is ".$stockprice.".";
  
  ?&gt;
  </code></pre>