diff --git a/library/Class/WebService/MappedSoapClient.php b/library/Class/WebService/MappedSoapClient.php index 85f1e6c21f301e72c8c3c9f3ac1374a63afab1c3..3873a75aa13938347ca3ba580d29db3f73e52da5 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()); + } }