Exemplo n.º 1
0
        private static void AddEventToDatabase(Object d)
        {
            try
            {
                Zomp.EventData dd = (Zomp.EventData)d;
                WSHttpBinding  b  = new WSHttpBinding(SecurityMode.Transport);
                b.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
                b.Name = "WSHttpBinding_IService";
                EndpointAddress address = new EndpointAddress("https://zomp.co/z/ZompWebService.svc");

                using (Zomp.ServiceClient z = new Zomp.ServiceClient(b, address))
                {
                    z.AddEventToDatabase(dd);
                }
            }
            catch (Exception ex)
            {
            }
        }
Exemplo n.º 2
0
        public static string GetCurrentVersion()
        {
            try
            {
                WSHttpBinding b = new WSHttpBinding(SecurityMode.Transport);
                b.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
                b.Name = "WSHttpBinding_IService";
                EndpointAddress address = new EndpointAddress("https://zomp.co/z/ZompWebService.svc");

                using (Zomp.ServiceClient z = new Zomp.ServiceClient(b, address))
                {
                    return(z.zVD_CurrentVersion());
                }
            }
            catch (Exception ex)
            {
                return("");
            }
        }