Exemplo n.º 1
0
 public override DocsPaIntegration.Search.SearchOutputRow PuntualSearch(DocsPaIntegration.Search.PuntualSearchInfo puntualSearchInfo)
 {
     try
     {
         ExternalWSSoapClient soap   = GetWSClient();
         PuntualSearchInfoWS  search = new PuntualSearchInfoWS();
         search.Codice = puntualSearchInfo.Codice;
         PuntualSearchOutputWS outputWS = soap.PuntualSearch(search);
         if (outputWS.Code == SearchOutputCode.KO)
         {
             throw new SearchException(SearchExceptionCode.SERVER_ERROR, outputWS.ErrorMessage);
         }
         SearchOutputRow res = new SearchOutputRow();
         if (outputWS.Row != null)
         {
             res.Codice      = outputWS.Row.Codice;
             res.Descrizione = outputWS.Row.Descrizione;
         }
         return(res);
     }
     catch (SearchException se)
     {
         throw se;
     }
     catch (Exception e)
     {
         logger.Error("Exception: " + e);
         throw new SearchException(SearchExceptionCode.SERVICE_UNAVAILABLE);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Metodo utilizzato per una ricerca puntuale, per codice fiscale
        /// </summary>
        /// <param name="puntualSearchInfo"></param>
        /// <returns></returns>
        public override DocsPaIntegration.Search.SearchOutputRow PuntualSearch(DocsPaIntegration.Search.PuntualSearchInfo puntualSearchInfo)
        {
            SearchOutputRow row = new SearchOutputRow();

            return(row);
        }