获取http标头SOAP客户端时出错

时间:2016-10-17 07:53:46

标签: php apache soap

我正在使用SOAP客户端在Magento(PHP)中下订单并在点击该Web服务时获取错误获取http标头。

当我重新启动httpd时,错误消失,我可以一次又一次地下订单

我尝试了什么

default_socket_timeout:120

SOAP CLIENT的代码片段

$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客户端可以和其他人一起使用。

1 个答案:

答案 0 :(得分:0)

尝试编辑php.ini文件soap.wsdl_cache_enabled=1并将其更改为soap.wsdl_cache_enabled=0