Welcher Fehler steckt iin folgendem PHP-Programm?
Von: , 13.01.2012 13:15 Uhr
<?php
/** Vispanet5_wrapper
* version 2011
* access public
*/
class Vispanet5_wrapper {
function __construct() {
}
function general($data) {
$SessionToken = $data->SessionToken;
$SessionToken = $data->SessionToken;
$startTime = strtotime($data->STARTTIME);
$endTime = strtotime($data->ENDTIMe);
$swenetData = new DOMDocumet();
$myfile = "C:/DLRBremen/MuSTAnG/MuSTAnG_Software/sky/VOTable/datint.txt";
// $th = fopen($myfile,'a');
// $s1 = substr($startTime,0,10);
$s1 = "2011-11-27";
$s2 = " ";
// $s3 = substr($endTime,0,10);
$s3 = "2011-11-29";
$s4 = "_";
$stime = $s1.$s2.$s3;
$stime2 = $s4.$s1.$s4.$s3;
$th = fopen($myfile,'a');
fwrite ($th,"\r\n".$stime);
fclose($th);
zyk: ; $graph1="C:/DLRBremen/MuSTAnG/MuSTAnG_Software/sky/VOTable/GCRflowdirOutEclipPlane".$sTime2.".xml";
if (file_exists($graph1)) {
densityGCRs($stime2);
interplanCMEanisotropy($stime2);
EarthinCMEGCRBidirectstream($stime2);
GCRflowDirEclipPlane($sTime2);
GCRflowDirOutEclipPlane($sTime2);
return;
}
goto zyk;
}
function densityGCRs($sTime2) {
$file = "C:/DLRBremen/MuSTAnG/MuSTAnG_Software/sky/VOTable/densityGCRs".$sTime2.".xml";
$th=fopen($file,'r');
while (!feof($file)) {
$tabledata=fread($th,10240);
}
fclose($file);
return $tabledata;
}
function interplanCMEanisotropy($sTime2) {
$file = "C:/DLRBremen/MuSTAnG/MuSTAnG_Software/sky/VOTable/interplanCMEanisotropy".$sTime2.".xml";
$th=fopen($file,'r');
while (!feof($file)) {
$tabledata=fread($th,10240);
}
fclose($file);
return $tabledata;
}
function EarthinCMEGCRBidirectstream($sTime2) {
$file = "C:/DLRBremen/MuSTAnG/MuSTAnG_Software/sky/VOTable/EarthinCMEGCRBidirectstream".$sTime2.".xml";
$th=fopen($file,'r');
while (!feof($file)) {
$tabledata=fread($th,10240);
}
fclose($file);
return $tabledata;
}
function GCRflowDirEclipPlane($sTime2) {
$file = "C:/DLRBremen/MuSTAnG/MuSTAnG_Software/sky/VOTable/GCRflowDirEclipPlane".$sTime2.".xml";
$th=fopen($file,'r');
while (!feof($file)) {
$tabledata=fread($th,10240);
}
fclose($file);
return $tabledata;
}
function GCRflowDirOutEclipPlane($sTime2) {
$file = "C:/DLRBremen/MuSTAnG/MuSTAnG_Software/sky/VOTable/GCRflowDirOutEclipPlane".$sTime2.".xml";
$th=fopen($file,'r');
while (!feof($file)) {
$tabledata=fread($th,10240);
}
fclose($file);
return $tabledata;
}
}
require_once('lib/nusoap.php');
ini_set("soap.wsdl_cache_enabled","0");
//$server = new soap_server("wsdl/Vispanet5_wrapper.wsdl");
$server = new soap_server();
$server->setClass("Vispanet5_wrapper");
$server->handle();
?>
Der Fehler auf der Webseite
Fatal error: Call to undefined method soap_server:: setClass() in C:....on line ....
Kann mir jemand helfen?
Günter Bartling
