soap_client = new soap_client($path, true); $this->soap_client->soap_defencoding = 'UTF-8'; $this->soap_client->decode_utf8 = false; $this->soap_client->setDebugLevel(0); $err = $this->soap_client->getError(); if ($err) $this->error = "Soap Constructor Error
" . $err . "

"; } function _call($method, $params) { $this->faultstring = ""; $result = $this->soap_client->call($method, $params); if ($this->soap_client->fault) { $this->faultstring = $result["faultstring"]; if (!in_array(mb_strtolower($this->faultstring), ["session not valid","session invalid", "session idled"])) $this->error .= "" . sprintf(_("SOAP-Fehler, Funktion \"%s\":"), $method) . " " . $result["faultstring"] . " (" . $result["faultcode"] . ")
"; //.implode($params,"-"); } else { $err = $this->soap_client->getError(); if ($err) $this->error .= "" . sprintf(_("SOAP-Fehler, Funktion \"%s\":"), $method) . " " . $err . "
"; //.implode($params,"-") . htmlspecialchars($this->soap_client->response, ENT_QUOTES); else return $result; } error_log($this->error); return false; } function getError() { $error = $this->error; $this->error = ""; if ($error != "") return $error; else return false; } } ?>