Exemplo n.º 1
0
        public Node get_Node(string authTocken, long node_id)
        {
            DocumentManagementClient docManClient = new DocumentManagementClient();

            CWS.DocumentManagement.OTAuthentication otAuthDocManger = new CWS.DocumentManagement.OTAuthentication();
            otAuthDocManger.AuthenticationToken = authTocken;
            Node node = null;

            try
            {
                node = docManClient.GetNode(ref otAuthDocManger, node_id);
            }
            catch (FaultException e)
            {
                Console.WriteLine(e.Message);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
            finally
            {
                docManClient.Close();
            }
            return(node);
        }