且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHP的肥皂错误获取HTTP头

更新时间:2021-07-07 06:00:36

我知道这是一个老问题,但也许我的解决方案可能对其他人有用. 我遇到了同样的问题,通过在创建SoapClient对象时将'keep_alive'参数更改为false,解决了我的问题:

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,
));