Example #1
0
        public XML invoke(BLOB imageDocument)
        {
            object[] results = this.Invoke("invoke", new object[] {
                imageDocument
            });

            return((XML)(results[0]));
        }
Example #2
0
 /// <remarks/>
 public void invokeAsync(BLOB imageDocument, object userState)
 {
     if ((this.invokeOperationCompleted == null))
     {
         this.invokeOperationCompleted = new System.Threading.SendOrPostCallback(this.OninvokeOperationCompleted);
     }
     this.InvokeAsync("invoke", new object[] {
         imageDocument
     }, this.invokeOperationCompleted, userState);
 }
Example #3
0
        public static DocsPaVO.LiveCycle.ProcessFormOutput processBarcodeForm(DocsPaVO.utente.InfoUtente infoUtente, DocsPaVO.LiveCycle.ProcessFormInput processFormInput)
        {
            try
            {
                //Istanzio il servizio

                ProcessBarcodeForm.ProcessBarcodeFormService processBarcodeForm = LCServicesManager.getProcessBarcodeFormService();
                DocsPaVO.LiveCycle.ProcessFormOutput         processFormOutput  = new DocsPaVO.LiveCycle.ProcessFormOutput();

                if (processBarcodeForm != null)
                {
                    //Popolo il binaryData del BLOB
                    ProcessBarcodeForm.BLOB inDoc = new ProcessBarcodeForm.BLOB();
                    inDoc.binaryData = processFormInput.fileDocumentoInput.content;

                    //Invoco il processo per il file pdf
                    ProcessBarcodeForm.XML xmlFile = null;
                    xmlFile = processBarcodeForm.invoke(inDoc);
                    processBarcodeForm.Dispose();

                    //Processo l'xml
                    if (xmlFile != null && xmlFile.document != null)
                    {
                        //Leggo l'xml restituito
                        XmlDocument xmlDoc = new XmlDocument();
                        xmlDoc.LoadXml(xmlFile.document.ToString());

                        //Processo la tipologia di documento
                        DocumentiManager.compilaTipologiaDocumento(infoUtente, processFormInput, xmlDoc, ref processFormOutput);

                        //Processo i campi standard del documento
                        DocumentiManager.compilaCampiDocumento(infoUtente, processFormInput, xmlDoc, ref processFormOutput);

                        /*
                         * //Processo i campi nascosti della form
                         * DocumentiManager.compilaCampiNascosti(infoUtente, xmlDoc, ref processFormOutput);
                         */
                    }
                }
                else
                {
                    return(null);
                }

                return(processFormOutput);
            }
            catch (Exception e)
            {
                logger.Error("Errore in LiveCycle  - LCServices - metodo: processBarcodeForm()", e);
                return(null);
            }
        }
Example #4
0
 /// <remarks/>
 public void invokeAsync(BLOB imageDocument)
 {
     this.invokeAsync(imageDocument, null);
 }