From bc9df9d2d7202be7fc98b29db7f885a3c6a25aa6 Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Sat, 8 Oct 2011 22:02:54 +0200 Subject: [PATCH] [SoapClient] Added exceptions and user_agent options --- src/BeSimple/SoapClient/SoapClient.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/BeSimple/SoapClient/SoapClient.php b/src/BeSimple/SoapClient/SoapClient.php index 5e7ba02..10de074 100644 --- a/src/BeSimple/SoapClient/SoapClient.php +++ b/src/BeSimple/SoapClient/SoapClient.php @@ -45,6 +45,8 @@ class SoapClient 'debug' => false, 'cache_type' => null, 'namespace' => null, + 'exceptions' => true, + 'user_agent' => 'BeSimpleSoap', ); // check option names and live merge, if errors are encountered Exception will be thrown @@ -167,7 +169,9 @@ class SoapClient 'cache_wsdl' => $this->options['cache_type'], 'trace' => $this->options['debug'], 'classmap' => $this->getClassmap(), + 'exceptions' => $this->options['exceptions'], 'typemap' => $this->getTypemap(), + 'user_agent' => $this->options['user_agent'], ); }