handlerRequest(); $uri = $MIOLO->getConf('home.url'); echo "Webservices called from $client at $time\n"; echo "Requested Data:\n"; echo "Module: $currentModule, Class: $class, "; $wsdlFile = "/webservices/wsdl/$class.wsdl"; $wsdlPath = $MIOLO->getModulePath( $module, $wsdlFile ); $wsdl = NULL; if ( file_exists($wsdlPath) ) { $wsdl = $wsdlPath; } $file = "/webservices/$class.class"; $path = $MIOLO->getModulePath( $module, $file ); //Instanciate a new soapserver $server = new SoapServer( NULL, array( 'uri' => $uri ) ); if ( file_exists($path) ) { include_once($path); $server->setClass($class); $funcs = $server->getFunctions(); echo "Methods: "; foreach($funcs as $f) { echo "$f, "; } echo "\n"; $out = ob_get_contents(); error_log("$out \n", 3, $logFile); ob_end_clean(); $server->handle(); } else { echo "\nERROR! File not found: $path \n"; $out = ob_get_contents(); error_log("$out \n", 3, $logFile); ob_end_clean(); $server->fault('171', 'Sorry, webservices not found!'); } ?>