dongyao5186 2019-03-22 06:17
浏览 96

PHP SoapClient - 获取http标头时出错

I'm using PHP SoapClient to fetch details from a soap api, it works perfectly before, then suddenly it stops working and giving me this error: (with a status of 200 OK)

{
    "faultstring": "Error Fetching http headers",
    "faultcode": "HTTP"
}

This is my code: (that runs perfectly before)

$client = new SoapClient($wsdl, array("trace"=>1, "exceptions"=>0));

Things I've tried:

disabling keep_alive

  • 'keep_alive' => 0

increasing timeout from php.ini

  • default_socket_timeout = 6000

increasing timeout from php code

  • ini_set('default_socket_timeout', 6000);

disabling wsdl cache from php.ini

  • soap.wsdl_cache_enabled=0

tried compression header

  • 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | SOAP_COMPRESSION_DEFLATE

But no luck

Don't know what I'm missing

Thanks for the help


My machine:

PHP: PHP 7.2.15-0ubuntu0.18.04.1

Apache: Apache/2.4.29 (Ubuntu)

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 java如何提取出pdf里的文字?
    • ¥100 求三轴之间相互配合画圆以及直线的算法
    • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
    • ¥15 名为“Product”的列已属于此 DataTable
    • ¥15 安卓adb backup备份应用数据失败
    • ¥15 eclipse运行项目时遇到的问题
    • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
    • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
    • ¥15 自己瞎改改,结果现在又运行不了了
    • ¥15 链式存储应该如何解决