[SoapClient] Added exceptions and user_agent options

This commit is contained in:
Francis Besset 2011-10-08 22:02:54 +02:00
parent 29a388eb7d
commit bc9df9d2d7
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,8 @@ class SoapClient
'debug' => false, 'debug' => false,
'cache_type' => null, 'cache_type' => null,
'namespace' => null, 'namespace' => null,
'exceptions' => true,
'user_agent' => 'BeSimpleSoap',
); );
// check option names and live merge, if errors are encountered Exception will be thrown // 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'], 'cache_wsdl' => $this->options['cache_type'],
'trace' => $this->options['debug'], 'trace' => $this->options['debug'],
'classmap' => $this->getClassmap(), 'classmap' => $this->getClassmap(),
'exceptions' => $this->options['exceptions'],
'typemap' => $this->getTypemap(), 'typemap' => $this->getTypemap(),
'user_agent' => $this->options['user_agent'],
); );
} }