Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
last request with soap header
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejnov committed Jul 20, 2016
1 parent ef3bbca commit d92fd4e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/SoapClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ class SoapClient extends \SoapClient {
/** @var float */
private $lastResponseEndTime;

/** @var string */
private $lastRequest;

/**
*
* @param string $service
Expand Down Expand Up @@ -56,7 +59,7 @@ public function __doRequest($request, $location, $saction, $version, $one_way =

$this->traceRequired && $this->lastResponseStartTime = microtime(TRUE);

$response = parent::__doRequest($objWSSE->saveXML(), $location, $saction, $version);
$response = parent::__doRequest($this->lastRequest = $objWSSE->saveXML(), $location, $saction, $version);

$this->traceRequired && $this->lastResponseEndTime = microtime(TRUE);

Expand Down Expand Up @@ -93,4 +96,11 @@ private function getConnectionTimeTillNow() {
return microtime(TRUE) - $this->connectionStartTime;
}

/**
* @return string
*/
public function __getLastRequest() {
return $this->lastRequest;
}

}

0 comments on commit d92fd4e

Please sign in to comment.