public static function GetWSDLInfo($ServiceName) { // First time we need it, set up the list of wsdl paths if (is_null(self::$WsdlArray)) { self::$WsdlArray = array(); $WsdlConfigFile = dirname(__FILE__) . "/" . self::WSDLCONFIGFILE; if (is_readable($WsdlConfigFile)) { if (($handle = fopen($WsdlConfigFile, "r")) !== FALSE) { $FirstTime = TRUE; while (($data = fgetcsv($handle)) !== FALSE) { // Skip first record as it is a header row if ($FirstTime) { $FirstTime = FALSE; continue; } $WsdlObj = new WsdlInfo(); $WsdlObj->WsdlUri = trim($data[1]); $WsdlObj->Username = trim($data[2]); $WsdlObj->Pass = trim($data[3]); self::$WsdlArray[strtolower(trim($data[0]))] = $WsdlObj; } } } } $ServiceName = strtolower(trim($ServiceName)); if (array_key_exists($ServiceName, self::$WsdlArray)) { return self::$WsdlArray[$ServiceName]; } else { trigger_error("Soap service name {$ServiceName} not defined in wsdl.conf", E_USER_ERROR); } }