private static void GetDocumentStatusCallXMLRequest(XmlNode xmlDocumentStatusCallNode, XmlDocument xmlDoc, GetDocumentStatusRequest request)
 {
     var InserterIdNode = xmlDoc.CreateElement("InserterId");
     InserterIdNode.InnerText = request.InserterId;
     xmlDocumentStatusCallNode.AppendChild(InserterIdNode);
 }
 public virtual GetDocumentStatusResponse GetDocumentStatus(GetDocumentStatusRequest request)
 {
     return null;
 }
        /// <summary>
        /// Returns the status of the document using the provided identifier. Ex:Unkown, Done, Pending etc.,
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public override GetDocumentStatusResponse GetDocumentStatus(GetDocumentStatusRequest request)
        {
            var response = new GetDocumentStatusResponse();

            try
            {
                var xml = ConstructXMLRequest(request, RequestTypeEnum.GetDocumentStatusCall);
                var responseStream = SendRequest(xml);
                var reader = new StreamReader(responseStream);
                response.Status = (GetDocumentStatusCallResponse)Deserialize(typeof(GetDocumentStatusCallResponse), reader);
            }
            catch
            {
                throw new Exception("Error in Service.");
            }

            return response;
        }