Re: SOAP_Fault()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 21 May 2004 05:06:38 +0200, Michael Rasmussen wrote:

> 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.
> 
I have made further inquieries into this problem. It appears to be a
problem which relates back to version 7.2. Aparently the implementation of
SOAP_Fault has changed between version 7.1 and 7.2. A print of the output
shown from the same code running under version 7.1 can be seen below:

Message: class soap_fault { var $error_message_prefix = 'PHP'; var $mode =
1; var $level = 1024; var $code = 'SOAP-ENV:Server'; var $message =
'mysql_connect(): Access denied for user: \'freedbuser@localhost\' (Using
password: YES)'; var $userinfo = 'Errno: 2 Filename:
/var/www/html/freedb/lib/server.class.php Lineno: 37'; var $backtrace =
array ( 0 => array ( 'file' => '/usr/share/php/SOAP/Fault.php', 'line' =>
49, 'function' => 'pear_error', 'class' => 'pear_error', 'type' => '::',
'args' => array ( 0 => 'mysql_connect(): Access denied for user:
\'freedbuser@localhost\' (Using password: YES)', 1 => 'SOAP-ENV:Server', 2
=> NULL, 3 => NULL, 4 => 'Errno: 2 Filename:
/var/www/html/freedb/lib/server.class.php Lineno: 37', ), ), 1 => array (
'file' => '/usr/share/php/SOAP/Base.php', 'line' => 320, 'function' =>
'soap_fault', 'class' => 'soap_fault', 'type' => '->', 'args' => array ( 0
=> 'mysql_connect(): Access denied for user: \'freedbuser@localhost\'
(Using password: YES)', 1 => 'SOAP-ENV:Server', 2 => 'PHP', 3 => 'Errno: 2
Filename: /var/www/html/freedb/lib/server.class.php Lineno: 37', 4 =>
NULL, 5 => NULL, ), ), 2 => array ( 'file' =>
'/usr/share/php/SOAP/Client.php', 'line' => 508, 'function' =>
'_raisesoapfault', 'class' => 'soap_client', 'type' => '->', 'args' =>
array ( 0 => 'mysql_connect(): Access denied for user:
\'freedbuser@localhost\' (Using password: YES)', 1 => 'Errno: 2 Filename:
/var/www/html/freedb/lib/server.class.php Lineno: 37', 2 => 'PHP', 3 =>
'SOAP-ENV:Server', ), ), 3 => array ( 'file' =>
'/usr/share/php/SOAP/Client.php', 'line' => 476, 'function' =>
'__decoderesponse', 'class' => 'soap_client', 'type' => '->', 'args' =>
array ( 0 => class soap_value { var $value = array ( 0 => class soap_value
{ var $value = 'SOAP-ENV:Server'; var $name = 'faultcode'; var $type =
'QName'; var $namespace = 'http://schemas.xmlsoap.org/soap/envelope/'; var
$type_namespace = 'http://www.w3.org/2001/XMLSchema'; var $attributes =
array ( ); var $arrayType = ''; var $options = array ( ); var $nqn = class
qname { var $name = 'faultcode'; var $ns = ''; var $namespace =
'http://schemas.xmlsoap.org/soap/envelope/'; }; var $tqn = class qname {
var $name = 'QName'; var $ns = ''; var $namespace =
'http://www.w3.org/2001/XMLSchema'; }; var $type_prefix = ''; }, 1 =>
class soap_value { var $value = 'mysql_connect(): Access denied for user:
\'freedbuser@localhost\' (Using password: YES)'; var $name =
'faultstring'; var $type = 'string'; var $namespace =
'http://schemas.xmlsoap.org/soap/envelope/'; var $type_namespace =
'http://www.w3.org/2001/XMLSchema'; var $attributes = array ( ); var
$arrayType = ''; var $options = array ( ); var $nqn = class qname { var
$name = 'faultstring'; var $ns = ''; var $namespace =
'http://schemas.xmlsoap.org/soap/envelope/'; }; var $tqn = class qname {
var $name = 'string'; var $ns = ''; var $namespace =
'http://www.w3.org/2001/XMLSchema'; }; var $type_prefix = ''; }, 2 =>
class soap_value { var $value = 'PHP'; var $name = 'faultactor'; var $type
= 'anyURI'; var $namespace = 'http://schemas.xmlsoap.org/soap/envelope/';
var $type_namespace = 'http://www.w3.org/2001/XMLSchema'; var $attributes
= array ( ); var $arrayType = ''; var $options = array ( ); var $nqn =
class qname { var $name = 'faultactor'; var $ns = ''; var $namespace =
'http://schemas.xmlsoap.org/soap/envelope/'; }; var $tqn = class qname {
var $name = 'anyURI'; var $ns = ''; var $namespace =
'http://www.w3.org/2001/XMLSchema'; }; var $type_prefix = ''; }, 3 =>
class soap_value { var $value = 'Errno: 2 Filename:
/var/www/html/freedb/lib/server.class.php Lineno: 37'; var $name =
'detail'; var $type = 'string'; var $namespace =
'http://schemas.xmlsoap.org/soap/envelope/'; var $type_namespace =
'http://www.w3.org/2001/XMLSchema'; var $attributes = array ( ); var
$arrayType = ''; var $options = array ( ); var $nqn = class qname { var
$name = 'detail'; var $ns = ''; var $namespace =
'http://schemas.xmlsoap.org/soap/envelope/'; }; var $tqn = class qname {
var $name = 'string'; var $ns = ''; var $namespace =
'http://www.w3.org/2001/XMLSchema'; }; var $type_prefix = ''; }, ); var
$name = 'Fault'; var $type = 'Struct'; var $namespace =
'http://schemas.xmlsoap.org/soap/envelope/'; var $type_namespace = ''; var
$attributes = array ( ); var $arrayType = ''; var $options = array ( );
var $nqn = class qname { var $name = 'Fault'; var $ns = ''; var $namespace
= 'http://schemas.xmlsoap.org/soap/envelope/'; }; var $tqn = class qname {
var $name = 'Struct'; var $ns = ''; var $namespace = ''; }; var
$type_prefix = ''; }, ), ), 4 => array ( 'file' =>
'/usr/share/php/SOAP/Client.php', 'line' => 245, 'function' => '__parse',
'class' => 'soap_client', 'type' => '->', 'args' => array ( 0 => '
SOAP-ENV:Server mysql_connect(): Access denied for user:
\'freedbuser@localhost\' (Using password: YES) PHP Errno: 2 Filename:
/var/www/html/freedb/lib/server.class.php Lineno: 37 ', 1 => 'UTF-8', 2 =>
NULL, ), ), 5 => 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', ), ), 6 => array ( 'file' =>
'/var/www/html/freedb/index.php', 'line' => 10, 'function' => 'selectdb',
'class' => 'freedbclient', 'type' => '->', 'args' => array ( 0 => 'select
* from genre', ), ), ); var $callback = NULL; }

Anybody here who knows what has change in the implementation of SOAP_Fault??

-- 
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
--------------------------------------------------------------
You will feel hungry again in another hour.

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux