wsdl - PHP SoapClient - SOAP ERROR Fatal error couldn't load from external entity -
i'm using php soapclient in order connect webservice.
$this->client = new soapclient($this->wsdl, array('trace'=>true, 'cache' => wsdl_cache_disk));
i have many requests each day , i'm getting following error exception soap:
soapfault exception: [wsdl] soap-error: parsing wsdl: couldn't load 'http://ws-rca.24broker.ro/?wsdl' : failed load external entity "http://www.example.ro/?wsdl" in ...
i repeat, it's not happens time. it's happening couple seconds.
so wanted check if in moment when error occurs, wsdl can accessed, in try/catch statement use file_get_contents above url, , seems wsdl & running because can xml code, in exact moment when error occurs.
so tried:
- spoke guys hosting company handles above url; said wsdl & running @ time
- checked server log files; nothing related above error except error
does have clue what's happening ? thanks.
look php.ini , if:
default_socket_timeout = 0;
change like:
default_socket_timeout = 300;
also can use function http://php.net/manual/en/function.socket-set-timeout.php. hope helps.
Comments
Post a Comment