Hi all, Anybody been able to get any results by using SOAP_Fault() as a response? It seems to me that the server automatically generates it's own SOAP_Faults which automatically is returned regardles of what you instruct it to! Basically this means that errorHandling is close to none-existing. example: function connectDB() { if (!$this->connection) { $this->db = mysql_connect($this->dsn{'host'},$this->dsn{'username'},$this->dsn{'password'}); if (!$this->db) { return new SOAP_FAULT (mysql_error($this->db), 'Server', $this->nameSpace, $this); } $db = mysql_select_db($this->dsn{'database'}, $this->db); if (!$db) { return new SOAP_FAULT (mysql_error($this->db), 'Server', $this->nameSpace, $this); } $this->connection = 1; } } Result is always this regardles of the error message: Message: class soap_fault { var $error_message_prefix = ''; var $mode = 1; var $level = 1024; var $code = 'HTTP'; var $message = 'Invalid HTTP Response'; var $userinfo = ''; var $backtrace = array ( 0 => array ( 'file' => '/usr/share/php/SOAP/Fault.php', 'line' => 49, 'function' => 'pear_error', 'class' => 'pear_error', 'type' => '::', 'args' => array ( 0 => 'Invalid HTTP Response', 1 => 'HTTP', 2 => NULL, 3 => NULL, 4 => '', ), ), 1 => array ( 'file' => '/usr/share/php/SOAP/Base.php', 'line' => 199, 'function' => 'soap_fault', 'class' => 'soap_fault', 'type' => '->', 'args' => array ( 0 => 'Invalid HTTP Response', 1 => 'HTTP', 2 => '', 3 => '', 4 => NULL, 5 => NULL, ), ), 2 => array ( 'file' => '/usr/share/php/SOAP/Transport/HTTP.php', 'line' => 365, 'function' => '_raisesoapfault', 'class' => 'soap_transport_http', 'type' => '->', 'args' => array ( 0 => 'Invalid HTTP Response', ), ), 3 => array ( 'file' => '/usr/share/php/SOAP/Transport/HTTP.php', 'line' => 473, 'function' => '_parseresponse', 'class' => 'soap_transport_http', 'type' => '->', 'args' => array ( ), ), 4 => array ( 'file' => '/usr/share/php/SOAP/Transport/HTTP.php', 'line' => 155, 'function' => '_sendhttp', 'class' => 'soap_transport_http', 'type' => '->', 'args' => array ( 0 => ' select * from genre ', 1 => array ( 'trace' => 0, 'input' => 'parse', 'result' => 'parse', 'parameters' => false, 'soapaction' => false, 'namespace' => 'http://localhost#freedb', 'style' => 'rpc', ), ), ), 5 => array ( 'file' => '/usr/share/php/SOAP/Client.php', 'line' => 264, 'function' => 'send', 'class' => 'soap_transport_http', 'type' => '->', 'args' => array ( 0 => ' select * from genre ', 1 => array ( 'trace' => 0, 'input' => 'parse', 'result' => 'parse', 'parameters' => false, 'soapaction' => false, 'namespace' => 'http://localhost#freedb', 'style' => 'rpc', ), ), ), 6 => array ( 'file' => '/var/www/html/freedb/lib/client.class.php', 'line' => 26, 'function' => 'call', 'class' => 'soap_client', 'type' => '->', 'args' => array ( 0 => 'selectDB', 1 => array ( 0 => 'select * from genre', ), 2 => 'http://localhost#freedb', ), ), 7 => array ( 'file' => '/var/www/html/freedb/index.php', 'line' => 10, 'function' => 'selectdb', 'class' => 'freedbclient', 'type' => '->', 'args' => array ( 0 => 'select * from genre', ), ), ); var $callback = NULL; } -- Hilsen/Regards Michael Rasmussen Get my public GnuPG keys: mir <at> datanom <dot> net http://keys.se.linux.org:11371/pks/lookup?op=get&search=0xE501F51C mir <at> miras <dot> org http://keys.se.linux.org:11371/pks/lookup?op=get&search=0xE3E80917 -------------------------------------------------------------- Treat end of file conditions in a uniform manner. - The Elements of Programming Style (Kernighan & Plaugher) -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php