SoapClient set custom HTTP Header

后端 未结 5 1893
傲寒
傲寒 2020-12-30 06:36

I am doing some work writing a PHP-based SOAP client application that uses the SOAP libraries native to PHP5. I need to send a an HTTP cookie and an additional HTTP header

5条回答
  •  醉梦人生
    2020-12-30 07:31

    The SoapClient::__soapCall method has an $input_headers argument, which takes an array of SoapHeaders.

    You could also use Zend Framework's SOAP client, which provides an addSoapInputHeader convenience method.

提交回复
热议问题