错误提取HTTP头SOAP客户端
问题描述:
我正在使用SOAP客户端在Magento(PHP)中下订单并获取错误在访问该Web服务时获取http头。错误提取HTTP头SOAP客户端
当我重新启动httpd的,则错误消失,我能够一次又一次下定单
我试了一下
default_socket_timeout:120
代码SOAP客户端的片段
$cli = new SoapClient($api_url_v2,
array(
'trace' =>true,
'connection_timeout' => 500000,
'keep_alive' => false,
)
);
检查周围httpd日志和发现以下内容
[Mon Oct 17 01:50:24 2016] [error] [client 127.0.0.1] client denied by server configuration: /var/www/html/store/app/etc/local.xml
[Mon Oct 17 01:53:53 2016] [notice] child pid 28113 exit signal Segmentation fault (11)
[Mon Oct 17 01:57:52 2016] [notice] child pid 29400 exit signal Segmentation fault (11)
[Mon Oct 17 02:01:14 2016] [notice] child pid 29401 exit signal Segmentation fault (11)
[Mon Oct 17 02:02:50 2016] [notice] child pid 29398 exit signal Segmentation fault (11)
[Mon Oct 17 02:05:38 2016] [error] [client 127.0.0.1] client denied by server configuration: /var/www/html/store/app/etc/local.xml
[Mon Oct 17 02:06:40 2016] [notice] child pid 28180 exit signal Segmentation fault (11)
请让我知道,如果有任何其他信息我可以提供跟踪此。
SOAP跟踪对我来说没有任何显示。这个问题只与这个Web服务有关,我的soap客户端与其他人一起工作正常。
答
尝试编辑php.ini文件soap.wsdl_cache_enabled=1
并将其更改为soap.wsdl_cache_enabled=0