I'm using PHP SoapClient in order to connect to a webservice.
$this->client = new SoapClient($this->wsdl, array('trace'=>true, 'cache' => WSDL_CACHE_DISK));
I have many requests each day and sometimes i'm getting the following error exception from Soap:
SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ws-rca.24broker.ro/?wsdl' : failed to load external entity "http://www.example.ro/?wsdl" in ...
I repeat, it's not something that happens all the time. It's happening for couple seconds.
So I wanted to check if in that moment when the error occurs, the WSDL can be accessed, so in the try/catch statement i use a file_get_contents with the above url, and it seems that WSDL is up & running because i can get the XML code, in exact moment when the error occurs.
So I tried:
- spoke with IT guys from the hosting company that handles the above URL; they said that their WSDL was up & running at that time
- checked all my server log files; nothing related to the above error except the error
Does anyone have a clue what's happening ? Thanks.