public function __doRequest($request, $location, $action, $version, $one_way = 0)
{
// Save a copy of the request, not the request itself -- see issue #153
$this->request = (string) $request;
$soapHook = $this->getLibraryHook();
if ($soapHook->isEnabled()) {
$response = $soapHook->doRequest($request, $location, $action, $version, $one_way, $this->options);
} else {
$response = $this->realDoRequest($request, $location, $action, $version, $one_way);
}
$this->response = $response;
return $one_way ? null : $response;
}