Reputation: 133
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
Upvotes: 3
Views: 51515
Reputation: 133
I find my problem : php.ini.
default_socket_timeout = 0
change by:
default_socket_timeout =300
And now, it's works !!!
Upvotes: 8
Reputation: 579
Make sure that $this->ip
is accessible from the server. In other words, from the dedicated server, make sure you can open up http://88.xxx.xxx.xxx:8080/SongBoxServeur/GestionSongBox?wsdl in a browser. If you can't, there's some networking configuration you need to attend to first.
Upvotes: 0