static void Main(string[] args)
        {
            contentManagerService1 cmService = null;
            string userSearchPath = "CAMID(\"DLDAP:u:uid=dd,ou=people\")";
            string sPath = "/content/package[@name='GO Sales and Retailers']/folder[@name='Documentation Report Samples']";
            string C8URL = "http://localhost:9330/p2pd/servlet/dispatch";

            cmService = new contentManagerService1 ();
            cmService.Url = C8URL;

            SetPermissions permObj = new SetPermissions();

            //if Anonymous is disabled, login with valid credentials
            string userID = "admin";	//user ID
            string pass = "******";	//password
            string nsID = "DLDAP";		//namespaceID as defined in Cognos Configuration
            permObj.UserLogon(userID, pass, nsID, cmService);

            //to add an object to permissions uncomment the following line
            //permObj.setPermissionsOnFolders(userSearchPath, cmService, sPath) ;

            //delete an object from permissions
            permObj.deleteUserFromPermissions(userSearchPath,  cmService, sPath) ;
        }
        static void Main(string[] args)
        {
            CognosReportNetService crnService = null;
            string userSearchPath = "CAMID(\"ldap:u:uid=euser1\")";
            string sPath = "/content/package[@name='GO Sales and Retailers']/folder[@name='Documentation Report Samples']/report[@name='Add Color']";
            string C8URL = "http://localhost:9304/p2pd/servlet/dispatch";

            crnService = new CognosReportNetService ();
            crnService.Url = C8URL;

            SetPermissions permObj = new SetPermissions();

            //if Anonymous is disabled, login with valid credentials
            string userID = "loehrd";	//user ID
            string pass = "******";	//password
            string nsID = "ldap";		//namespaceID as defined in Cognos Configuration
            permObj.UserLogon(userID, pass, nsID, crnService);

            //to add an object to permissions uncomment the following line
            permObj.setPermissionsOnFolders(userSearchPath, crnService, sPath) ;

            //delete an object from permissions
            //permObj.deleteUserFromPermissions(userSearchPath,  crnService, sPath) ;
        }