From 3d370224a3d12de2fc4c79e34fb8f8e368a9cc3e Mon Sep 17 00:00:00 2001 From: pbarroca <pbarroca@afi-sa.fr> Date: Wed, 22 Oct 2014 18:33:01 +0200 Subject: [PATCH] rel #17017 : MappedSoapClient forced to throw exceptions and to trace if logging --- library/Class/WebService/MappedSoapClient.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/library/Class/WebService/MappedSoapClient.php b/library/Class/WebService/MappedSoapClient.php index 85f1e6c21f3..3873a75aa13 100644 --- a/library/Class/WebService/MappedSoapClient.php +++ b/library/Class/WebService/MappedSoapClient.php @@ -78,8 +78,16 @@ class Class_WebService_MappedSoapClient extends SoapClient { public function __construct($wsdl, $options=[]) { - parent::__construct($wsdl, $options); - $this->__generateClassmap(); + $options['exceptions'] = true; + if (static::$_logger) + $options['trace'] = true; + + try { + parent::__construct($wsdl, $options); + $this->__generateClassmap(); + } catch (SoapFault $e) { + static::logError($wsdl, $e->getMessage()); + } } -- GitLab