Error receiving HTTP headers - SOAP error

I try to call a third-party SOAP server from a PHP soap client, but most often I get this as an answer: {"faultstring": "Error receiving HTTP headers", "error code": "HTTP"}

I already tried:

  • Setting default_socket_timeout in my php.ini both manually and in code using ini_set .
  • Next parameter SoapClient

    $ client = new SoapClient ($ wsdl, array ('trace' => true, 'connection_timeout' => 500000, 'cache_wsdl' => WSDL_CACHE_BOTH, 'keep_alive' => true));

Any help in this regard would be great, and I would be more than happy to share more snippets of code.

+5
source share

Source: https://habr.com/ru/post/1216191/


All Articles