title: PHP SoapClient Returns SOAP-ERROR: Parsing WSDL when loading local webservice
body: <p>I am trying to call SoapClient on local installation of SSRS.  It is failing and returning:</p>
  
  <p>SOAP-ERROR: Parsing WSDL: Couldn't load from '<code>http://localhost:8080/ReportServer/ReportExecution2005.asmx?wsdl</code>'</p>
  
  <p>I can put the url '<code>http://localhost:8080/ReportServer/ReportExecution2005.asmx?wsdl</code>' in browser and it displays the XML WSDL as expected.  </p>
  
  <p>Also the call to file_get_contents using the above url fails</p>
  
  <p>My environment is Windows 7 using XAMPP.  </p>
  
  <p>I believe XAMPP web server cannot access that file/location.</p>
  
  <p>in hosts file I put: </p>
  
  <p>127.0.0.1    localhost:8080/ReportServer</p>
  
  <p>in httpd-vhosts.conf I put in:</p>
  
  <pre><code>   NameVirtualHost *
       &lt;VirtualHost *&gt;
         DocumentRoot "C:\xampp\htdocs\SBSProductionDatabase"
         ServerName localhost
       &lt;/VirtualHost&gt;
       &lt;VirtualHost *&gt;
         DocumentRoot "C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer"
         ServerName localhost:8080/ReportServer
       &lt;Directory "C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer"&gt;
         Order allow,deny
         Allow from all
       &lt;/Directory&gt;
     &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>where "C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer" is the location of the file ReportExecution2005.asmx</p>
  
  <p>What am I doing wrong?</p>
  
  <p>BTW, my call is:</p>
  
  <pre><code>$client = new SoapClient("http://localhost:8080/ReportServer/ReportExecution2005.asmx?wsdl",
                           array('login' =&gt; "domain\userid",
                                 'password' =&gt; "password")); 
  </code></pre>