php soap error fetching http headers

后端 未结 1 339
逝去的感伤
逝去的感伤 2021-01-05 20:22

I am working on a PHP script that\'s processing a lot of data through a SOAP connection. Estimates of the total run time of the script look to be several days if it doesn\'t

相关标签:
1条回答
  • 2021-01-05 21:22

    I know it is an old question, but perhaps my solution can be useful to others. I had the same problem and by changing the 'keep_alive' parameter to false in the creation of the SoapClient object, my problem was solved:

    $client = new SoapClient($wsdl,array(
    'trace' =>true,
    'connection_timeout' => 500000,
    'cache_wsdl' => WSDL_CACHE_BOTH,
    'keep_alive' => false,
    ));
    
    0 讨论(0)
提交回复
热议问题