From d97068600414120a78c98ea5108101010ed0c4d9 Mon Sep 17 00:00:00 2001 From: "mt@neo-ami.de" Date: Wed, 6 Dec 2023 11:38:16 +0100 Subject: [PATCH] no message --- libs/ONVIF.inc.php | 15 +++++++++++++++ libs/wsdl.php | 1 - 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/libs/ONVIF.inc.php b/libs/ONVIF.inc.php index d532ee4..69657a2 100644 --- a/libs/ONVIF.inc.php +++ b/libs/ONVIF.inc.php @@ -9,6 +9,8 @@ class ONVIFsoapClient extends \SoapClient private $User; private $Pass; private $Options; + private $__last_request_headers; + private $__last_response_headers; public function __construct(string $wsdl, array $options = []) { @@ -24,7 +26,20 @@ public function __construct(string $wsdl, array $options = []) $this->User = ''; } $this->Options = $options; + $this->__last_request_headers = null; + $this->__last_response_headers = null; } + + public function __getLastRequestHeaders() + { + return $this->__last_request_headers; + } + + public function __getLastResponseHeaders() + { + return $this->__last_response_headers; + } + public function __doRequest($request, $location, $action, $version, $one_way = false) { $headers = [ diff --git a/libs/wsdl.php b/libs/wsdl.php index 57196e6..984f333 100644 --- a/libs/wsdl.php +++ b/libs/wsdl.php @@ -4,7 +4,6 @@ namespace ONVIF { - /** * WSDL Files */