Fault Problems
| From: | Rob Booth | Date: | Thu, 12 Jun 2003 18:49:13 +0000 |
| Subject: | Fault Problems | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-711@lists.php.net to get a copy of this message | ||
I have this code that kicks out a soap fault:
return = new SOAP_Fault('Invalid login', 'Client',
'urn:Permissions',
1);
I have 2 servers that have, as far as I can tell, identical setups. The
only differences are in the locations of the files. On both servers when I
don't trigger the fault everything runs fine but when I trigger the faule on
machine 1 I get back my expected fault, but on machine 2 it looks like I get
back a stack trace.
Has anyone run into this? Is there some setting that may be different
between the 2 machines setups?
When this fault is triggered on machine 1 I get back this object:
object(soap_fault)(8) {
["error_message_prefix"]=>
string(15) "urn:Permissions"
["mode"]=>
int(1)
["level"]=>
int(1024)
["code"]=>
string(15) "SOAP-ENV:Client"
["message"]=>
string(13) "Invalid login"
["userinfo"]=>
string(1) "1"
["backtrace"]=>
NULL
["callback"]=>
NULL
}
However on machine 2 I get this object back: object(soap_fault)(8) {
["error_message_prefix"]=>
string(15) "urn:Permissions"
["mode"]=>
int(1)
["level"]=>
int(1024)
["code"]=>
string(15) "SOAP-ENV:Client"
["message"]=>
string(13) "Invalid login"
["userinfo"]=>
array(7) {
[0]=>
&object(stdClass)(6) {
["file"]=>
string(33) "/usr/local/lib/php/SOAP/Fault.php"
["line"]=>
int(49)
["function"]=>
string(10) "pear_error"
["class"]=>
string(10) "pear_error"
["type"]=>
string(2) "::"
["args"]=>
array(5) {
[0]=>
string(13) "Invalid login"
[1]=>
string(6) "Client"
[2]=>
string(0) ""
[3]=>
string(0) ""
[4]=>
string(1) "1"
}
}
[1]=>
&object(stdClass)(6) {
["file"]=>
string(89)
"/usr/local/apache/htdocs/QA/user1/WebServices/Services/Permissions/Permissi
onsService.php"
["line"]=>
int(83)
["function"]=>
string(10) "soap_fault"
["class"]=>
string(10) "soap_fault"
["type"]=>
string(2) "->"
["args"]=>
array(4) {
[0]=>
string(13) "Invalid login"
[1]=>
string(6) "Client"
[2]=>
string(15) "urn:Permissions"
[3]=>
string(1) "1"
}
}
[2]=>
&object(stdClass)(4) {
["function"]=>
string(5) "login"
["class"]=>
string(18) "permissionsservice"
["type"]=>
string(2) "->"
["args"]=>
array(3) {
[0]=>
string(0) ""
[1]=>
string(0) ""
[2]=>
string(4) "fred"
}
}
[3]=>
&object(stdClass)(4) {
["file"]=>
string(34) "/usr/local/lib/php/SOAP/Server.php"
["line"]=>
int(231)
["function"]=>
string(20) "call_user_func_array"
["args"]=>
array(2) {
[0]=>
array(2) {
[0]=>
object(stdClass)(10) {
["user"]=>
string(0) ""
["dist"]=>
string(0) ""
["globalDB"]=>
&object(stdClass)(7) {
["dbConn"]=>
string(15) "Resource id #37"
["database"]=>
string(6) "Global"
["fieldCount"]=>
int(1)
["debug"]=>
int(0)
["lastInsertID"]=>
string(0) ""
["error"]=>
bool(false)
["errStr"]=>
string(0) ""
}
["clientDB"]=>
string(0) ""
["serviceUser"]=>
string(11) "Permissions"
["servicePass"]=>
string(10) "-deleted-"
["namespace"]=>
string(15) "urn:Permissions"
["discoNamespace"]=>
string(11) "Permissions"
["errStr"]=>
string(0) ""
["errObj"]=>
string(0) ""
}
[1]=>
string(5) "Login"
}
[1]=>
&object(stdClass)(3) {
["UserName"]=>
string(0) ""
["Password"]=>
string(0) ""
["Chain"]=>
string(4) "fred"
}
}
}
[4]=>
&object(stdClass)(6) {
["file"]=>
string(34) "/usr/local/lib/php/SOAP/Server.php"
["line"]=>
int(390)
["function"]=>
string(10) "callmethod"
["class"]=>
string(11) "soap_server"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
string(5) "Login"
[1]=>
&object(stdClass)(3) {
["UserName"]=>
string(0) ""
["Password"]=>
string(0) ""
["Chain"]=>
string(4) "fred"
}
}
}
[5]=>
&object(stdClass)(6) {
["file"]=>
string(34) "/usr/local/lib/php/SOAP/Server.php"
["line"]=>
int(170)
["function"]=>
string(12) "parserequest"
["class"]=>
string(11) "soap_server"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
string(587) "
fred
"
[1]=>
string(0) ""
}
}
[6]=>
&object(stdClass)(6) {
["file"]=>
string(76)
"/usr/local/apache/htdocs/QA/user1/WebServices/Services/Permissions/index.ph
p"
["line"]=>
int(12)
["function"]=>
string(7) "service"
["class"]=>
string(11) "soap_server"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
string(587) "
fred
"
}
}
}
["backtrace"]=>
NULL
["callback"]=>
NULL
}