#! /usr/bin/php
<?php

include ("ox-soap.php");

try {

	$result = getUtilClient($SOAPHOST)->listFilestore("*", getCredentialsObject($OXMASTER_ADMIN, $OXMASTER_ADMIN_PASS));

	if (!is_soap_fault($result)) {
		if (is_array($result)) {
			foreach ($result['return'] as $val_obj) {
				printFilestore($val_obj);
			}
		} else {
			printFilestore($result);
		}
	}

} catch (SoapFault $fault) {
	handleSoapFault($fault);
} catch (Exception $e) {
	handleExcepion($e);
}
?>
