1
votes

I am trying to call SoapClient on local installation of SSRS. It is failing and returning:

SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:8080/ReportServer/ReportExecution2005.asmx?wsdl'

I can put the url 'http://localhost:8080/ReportServer/ReportExecution2005.asmx?wsdl' in browser and it displays the XML WSDL as expected.

Also the call to file_get_contents using the above url fails

My environment is Windows 7 using XAMPP.

I believe XAMPP web server cannot access that file/location.

in hosts file I put:

127.0.0.1 localhost:8080/ReportServer

in httpd-vhosts.conf I put in:

   NameVirtualHost *
     <VirtualHost *>
       DocumentRoot "C:\xampp\htdocs\SBSProductionDatabase"
       ServerName localhost
     </VirtualHost>
     <VirtualHost *>
       DocumentRoot "C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer"
       ServerName localhost:8080/ReportServer
     <Directory "C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer">
       Order allow,deny
       Allow from all
     </Directory>
   </VirtualHost>

where "C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer" is the location of the file ReportExecution2005.asmx

What am I doing wrong?

BTW, my call is:

$client = new SoapClient("http://localhost:8080/ReportServer/ReportExecution2005.asmx?wsdl",
                         array('login' => "domain\userid",
                               'password' => "password")); 
1
The Full warning I get is: ( ! ) Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'localhost:8080/ReportServer/ReportExecution2005.asmx?wsdl' : failed to load external entity "localhost:8080/ReportServer/ReportExecution2005.asmx?wsdl" in C:\xampp\htdocs\SBSProductionDatabase\SSRS\GetReports.php:61 Stack trace: #0 C:\xampp\htdocs\SBSProductionDatabase\SSRS\GetReports.php(61): SoapClient->SoapClient('localhos...', Array) #1 {main} thrown in C:\xampp\htdocs\SBSProductionDatabase\SSRS\GetReports.php on line 61Larry
i have a problem like you had, could check if you can help me stackoverflow.com/questions/22259178/…Emilio Gort

1 Answers

0
votes

So, what happens when you browse "localhost:8080/ReportServer/ReportExecution2005.asmx?wsdl" or just 'localhost:8080/ReportServer' in browser ?