Esempio n. 1
0
        static void Main(string[] args)
        {
            //String PostString = "<TEst Name = 'Users'>Body</TEst>";
            //String PostString = @"<DataRequest><Table Name=""Users"" Destination=""Users""><Row><Field Name=""ID"" Destination=""ID"" Type=""STANDARD""/><Field Name=""FirstName"" Destination=""FirstName"" Type=""STANDARD""/><Field Name=""LastName"" Destination=""LastName"" Type=""STANDARD""/></Row></Table></DataRequest>";
            String PostString = @"<DataRequest><Table Name='Users'><Row><Field Name='ID'/><Field Name='FirstName'/></Row></Table></DataRequest>";
            //String PostString = "";
            BPMRequest r = new BPMConnect.BPMRequest();

            //System.Console.WriteLine(r.SendRequest(PostString));
            System.Console.WriteLine(r.SendRequest(PostString, "UsersList", null, "Supervisor", "Supervisor"));
            System.Console.ReadLine();
        }
Esempio n. 2
0
        // Метод входа в приложение.
        static void Main(string[] args)
        {
            // Вызов метода аутентификации.

            BPMConnect.BPMRequest req = new BPMConnect.BPMRequest();
            var str = req.SendRequest();

            Console.WriteLine(str);
            //Console.WriteLine("Успешна ли аутентификация?: {0}", TryLogin("Supervisor", "Supervisor"));
            //Console.WriteLine(GetData());
            Console.WriteLine("Для выхода нажмите ENTER...");
            Console.ReadLine();
        }