Beispiel #1
0
        public static bool EconomicKontoErValid(int economicAftalenummer, string economicBrugernavn, string economicKodeord)
        {
            EconomicWebServiceSoapClient midlertidigEconomicSOAPklient = new EconomicWebServiceSoapClient();

            ((BasicHttpBinding)midlertidigEconomicSOAPklient.Endpoint.Binding).AllowCookies = true;

            try
            {
                midlertidigEconomicSOAPklient.Connect(economicAftalenummer, economicBrugernavn, economicKodeord);
                midlertidigEconomicSOAPklient.Company_Get();
                midlertidigEconomicSOAPklient.Disconnect();
                return(true);
            }
            catch (Exception)
            {
                midlertidigEconomicSOAPklient.Disconnect();
                return(false);
            }
        }
Beispiel #2
0
        public static void VerifyAppIdentifier()
        {
            using (var session = new EconomicWebServiceSoapClient())
            {
                Console.WriteLine("Connecting");
                Connect(session);

                var verification = session.Verify_XEconomicAppIdentifier();
                if (verification == true)
                {
                    Console.WriteLine("AppIdentifier acknowledged.");
                }
                else
                {
                    Console.WriteLine("AppIdentifier failed.");
                }

                Console.WriteLine("Disconnecting");
                session.Disconnect();
                Console.WriteLine("Done");
                Console.ReadKey();
            }
        }
Beispiel #3
0
        public static void VerifyAppIdentifier()
        {
            using (var session = new EconomicWebServiceSoapClient())
            {
                Console.WriteLine("Connecting");
                Connect(session);

                var verification = session.Verify_XEconomicAppIdentifier();
                if (verification == true)
                {
                    Console.WriteLine("AppIdentifier acknowledged.");
                }
                else
                {
                    Console.WriteLine("AppIdentifier failed.");
                }

                Console.WriteLine("Disconnecting");
                session.Disconnect();
                Console.WriteLine("Done");
                Console.ReadKey();

            }
        }
Beispiel #4
0
 private void AfbrydEconomic()
 {
     _economicSOAPklient.Disconnect();
 }