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"));