Php – Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL Couldn’t load from ‘http://88.XXX.XXX.XXX:8080/

PHPsoapwsdl

I'm having trouble calling a web service from php.
With my personnal website, nothing wrong. But when i try from my dedicated server :

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://88.XXX.XXX.XXX:8080/SongBoxServeur/GestionSongBox?wsdl' : failed to load external entity "http://88.XXX.XXX.XXX:8080/SongBoxServeur/GestionSongBox?wsdl"

The same .php on my website and dedicated server :

 function __construct( $_ip, $_num_serie) {
 $this->ip = $_ip;
$this->num_serie = $_num_serie;
$this->soap = new SoapClient("http://".$this->ip.":8080/SongBoxServeur/GestionSongBox?wsdl",array(
                                    'trace' => true,
                                    'exceptions' => true));
                                    }

What could the problem be? (soap is enabled on both) Thx in advance

Best Answer

I find my problem : php.ini.

 default_socket_timeout = 0

change by:

default_socket_timeout =300

And now, it's works !!!

Related Topic