$aSOAPMapping ) ); // $oSoapServer->setPersistence(SOAP_PERSISTENCE_SESSION); if (!empty($sServiceCategory)) { $sServiceClass = $sServiceCategory; if (!class_exists($sServiceClass)) { // not a valid class name (not a PHP class at all) throw new SoapFault("iTop SOAP server", "Invalid argument service_category: '$sServiceClass' is not a PHP class"); } elseif (!is_subclass_of($sServiceClass, 'WebServicesBase')) { // not a valid class name (not deriving from WebServicesBase) throw new SoapFault("iTop SOAP server", "Invalid argument service_category: '$sServiceClass' is not derived from WebServicesBase"); } else { $oSoapServer->setClass($sServiceClass, null); } } else { $oSoapServer->setClass('BasicServices', null); } if ($_SERVER["REQUEST_METHOD"] == "POST") { CMDBObject::SetTrackOrigin('webservice-soap'); $oSoapServer->handle(); } else { echo "This SOAP server can handle the following functions: "; $aFunctions = $oSoapServer->getFunctions(); echo "\n"; echo "

Here the WSDL file

"; echo "You may also want to try the following service categories: "; echo "

\n"; } ?>