Skip to content
Snippets Groups Projects
Commit e78fe52c authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #17017 : MappedSoapClient overloaded __doRequest register last response

parent 3d370224
5 merge requests!529Hotline 6.56,!512Master,!484Master,!483Hotline 6.54,!478Hotline #17017 missing informations in user account with soap client
......@@ -79,8 +79,9 @@ class Class_WebService_MappedSoapClient extends SoapClient {
public function __construct($wsdl, $options=[]) {
$options['exceptions'] = true;
if (static::$_logger)
if (static::$_logger) {
$options['trace'] = true;
}
try {
parent::__construct($wsdl, $options);
......@@ -100,13 +101,16 @@ class Class_WebService_MappedSoapClient extends SoapClient {
public function __doRequest($request, $location, $action, $version, $one_way = null) {
try {
if (!$this->_soap_server) {
$response = parent::__doRequest($request, $location, $action, $version, $one_way);
$response = parent::__doRequest($request, $location, $action,
$version, $one_way);
$this->__last_response = $response;
static::log($this);
return $response;
}
$response = $this->_soap_server
->handle($request, $location, $action, $version, $one_way);
$this->__last_response = $response;
static::log($this);
return $response;
} catch (Exception $e) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment