With PHP, when trying to call some method with SOAP, I always bust the maximum execution time. However, since calling this method worked in the past, when I remove 'cache_wsdl' => WSDL_CACHE_NONE
it starts working.
If I fetch the WSDL with a file_get_contents
I get it completely. However, it just doesn't work when I call the method
$client = new SoapClient("https://.../file.asmx?wsdl", array(
'soap_version' => SOAP_1_1,
'trace' => true,
'cache_wsdl' => WSDL_CACHE_NONE
));
$result = $client->SomeMethod($parameters);
At some point I was able to get the error:
Fatal error: Uncaught SoapFault exception: [HTTP] Error Fetching http headers in myfile.php
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://abc.def...', 'http://someser....', 1, 0)
#1 myfile.php(27): SoapClient->__call('SomeMethod', Array)
#2 myfile.php(27): SoapClient->SomeMethod(Object(Z)) #3 {main} thrown in myfile.php on line 27
I would love to get more diagnostics errors but I do not know how?
I pay for this WSDL service and it is unusable... Is it this WSDL server's fault? How can I be sure and what can I say to this service provider? The call to SomeMethod doesn't answer in time? (even though I am able to download the WSDL)