title: Error running sample web service code from weather.gov
body: <p>I'm trying to integrate weather data from the NOAA in my web site, and as a starting point I was trying to run their sample code (available <a href="http://www.weather.gov/forecasts/xml/sample_products/ndfdXML.tar" rel="nofollow">here</a>. The specific sample I'm trying to work with is the Basic Client sample (starting point is ndfdXML.htm).</p>
  
  <p>I've followed the readme instructions for downloading nuSOAP and changing location to local paths, and changing the location of soapclient to www.weather.gov instead of localhost, but I'm still getting an error when I actually submit the page.</p>
  
  <p>The error only shows up when I do a view-source, and this is what it says:</p>
  
  <pre><code>Fatal error:  Uncaught SoapFault exception: 
  [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php': 
  Extra content at the end of the document  in /opt/lampp/htdocs/weather/ndfdXMLclient.php:179
  
  Stack trace:
  #0 /opt/lampp/htdocs/weather/ndfdXMLclient.php(179): SoapClient-&amp;gt;SoapClient('http://www.weat...')
  #1 {main}   thrown in /opt/lampp/htdocs/weather/ndfdXMLclient.php on line 179
  </code></pre>
  
  <p>Any idea what this means? I've been unable to find any kind of help offered by the actual weather service.</p>