Re: PHP Soap Problem, PHP isn't handling SoapClient responses
Thanks for your reply.
Yes you are totally right, Reading the innopbx.class.php quickly, I thought the exception would be caught there.
But now writing try - catch block in login.php, like this:
Yes you are totally right, Reading the innopbx.class.php quickly, I thought the exception would be caught there.
But now writing try - catch block in login.php, like this:
try {
$inno = new innoPBX($server, $httpu, $httpp, $user,
array('classmap' => array("UserInfo" => "innoUserInfo",
"CallInfo" => "innoCallInfo",
"AnyInfo" => "innoAnyInfo",
"Group" => "innoGroup",
"No" => "innoNo",
"Info" => "innoInfo",
)));
}
catch(Exception $e) {
echo "Sorry, there was an error: ".$e->getMessage();
}
if (isset($inno)) {
if ($inno->key() == 0)
die(header("location:index.html?loginFailed=true"));
else
header("location:innopbx.php");
}
Have solved the problem and the error was caught.
thanks again and have a nice day
Have solved the problem and the error was caught.
thanks again and have a nice day