Esempio n. 1
0
        public GetDocumentForURLResponse GetDocumentForURL(GetDocumentForURLRequest request)
        {
            //TODO:load the documents from local folders
            Log.Info("GetDocumentForURL request...");
            string fileName = @"TestData\SampleConfirm.docx";

            if (!String.IsNullOrEmpty(request.FileName))
            {
                fileName = @"TestData\" + request.FileName;
            }
            return(new GetDocumentForURLResponse
            {
                //ObjectStream = getFile("TestData\\SampleConfirm.docx")
                ObjectStream = getFile(fileName)
            });
        }
Esempio n. 2
0
 public GetDocumentForURLResponse GetDocumentForURL(GetDocumentForURLRequest request)
 {            
     //TODO:load the documents from local folders
     Log.Info("GetDocumentForURL request...");
     string fileName = @"TestData\SampleConfirm.docx"; 
     if (!String.IsNullOrEmpty(request.FileName))
         fileName = @"TestData\" + request.FileName;
     return new GetDocumentForURLResponse
         {
             //ObjectStream = getFile("TestData\\SampleConfirm.docx")
             ObjectStream = getFile(fileName)
         };
 }