1. I used HTTPWebRequest like bellow (but how can get data ?). i found that i should use location, and after connection i'l get data from hypercubes, like that:
// The default port number is 4747 but can be customized var uri = new Uri("https://myserver:4242"); ILocation location = Location.FromUri(uri); var x509 = new X509Certificate2(File.ReadAllBytes(@"C:\QlikCert\clinet_final.pfx"), ""); X509Certificate2Collection certificateCollection = new X509Certificate2Collection(x509); location.AsDirectConnection(userDirectory: "domain", userId: "user", certificateCollection: certificateCollection); Console.WriteLine("Step1");
//var location = ConnectToDesktop(); var allApps = OpenAllApps(location).ToArray();
if (allApps.Any()) { UseAbstractStructureOnMasterObjects(allApps); UseAbstractStructureOnMapLayers(allApps); }
Console.WriteLine("Press enter to close."); Console.ReadLine();
but i have an error(empty Certificate)
/// Code to fetch ID's
static async Task Main(string[] args) { // locate the client certificate and accept it as trusted
var SenseCert = new X509Certificate2(File.ReadAllBytes(@"C:\QlikCert\client_final.pfx"), "");