public function debugLastSoapRequest(): array
    {
        $lastRequestInfo = $this->engine->collectLastRequestInfo();
        return [
            'request' => [
                'headers' => trim($this->soapClient->__getLastRequestHeaders()),
                'body'    => XmlFormatter::format($this->soapClient->__getLastRequest()),
            ],
            'response' => [
                'headers' => trim($this->soapClient->__getLastResponseHeaders()),
                'body'    => XmlFormatter::format($this->soapClient->__getLastResponse()),
            ]
        ];
    }