I have an apache web server with php 5.3 and I need to connect to a webservice I set up in sqlserver 2008
Both servers are in the intranet.
If from my browser I write
http://192.168.2.2/internet?wsdl I am prompted for a user and a password, which are those of a windows user with permissions to connect to the ws. After writing them I can see the XML file in my browser.
the php file is
<?php
$client=new SoapClient('http://192.168.2.2/internet?wsdl'
,array('login'=>"[user]",'password'=>"[password]")
); //replace user and password with the real ones
?>
and I get (in the log):
PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://192.168.2.2/internet?wsdl' : failed to load external entity "http://192.168.2.2/internet?wsdl"\n in /var/www/html/ws/index.php on line 15
PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://192.168.2.2/internet?wsdl' : failed to load external entity "http://192.168.2.2/internet?wsdl"\n in /var/www/html/ws/index.php:15\nStack trace:\n#0 /var/www/html/ws/index.php(15): SoapClient->SoapClient('http://192.168....', Array)\n#1 {main}\n thrown in /var/www/html/ws/index.php on line 15
I've tried variations in the url, the user, with and without password, with no luck
I've googled a lot, with no luck
Any ideas?
Thanks.