public bool CheckConnection()
        {
            bool result = false;

            using (DigitalArchiveClient client = new DigitalArchiveClient())
            {
                ConfigureClient(client);
                try
                {
                    client.Open();
                    result = client.CheckConnection();
                    client.Close();
                }
                catch (Exception ex)
                {
                    client.Abort();
                    throw ex;
                }
            }
            return(result);
        }
        public webservices.digitalarchive.extra.documentTO CreateDocumentFromServer(webservices.digitalarchive.extra.documentBinaryTO documentBinary, string fileName)
        {
            documentTO result = null;

            using (DigitalArchiveClient client = new DigitalArchiveClient())
            {
                ConfigureClient(client);
                try
                {
                    client.Open();
                    result = client.CreateDocument(documentBinary);
                    client.Close();
                }
                catch (Exception ex)
                {
                    client.Abort();
                    throw ex;
                }
            }
            return(result);
        }
        public webservices.digitalarchive.extra.documentTO SaveDocument(webservices.digitalarchive.extra.documentTO document)
        {
            documentTO result = null;

            using (DigitalArchiveClient client = new DigitalArchiveClient())
            {
                ConfigureClient(client);
                try
                {
                    client.Open();
                    result = client.SaveDocument(document);
                    client.Close();
                }
                catch (Exception ex)
                {
                    client.Abort();
                    throw ex;
                }
            }
            return(result);
        }