Пример #1
0
 public static TResultLote_GNRE GNREConsultaLote(SoapHttpClientProtocol oServico, TConsLote_GNRE xmlEnvio, Parametro oParam, VersaoXML versao)
 {
     return(ExecutaServico <TResultLote_GNRE, TConsLote_GNRE>(oServico, TService.GNRE_ConsultaLote, xmlEnvio, oParam, oParam.versao, "TResultLote_GNRE"));
 }
        public static KeyValuePair <string, RDI.NFe2.SchemaXML.GNRE.TResultLote_GNRE> Interface_GNREConsultaLote(SoapHttpClientProtocol oServico, TConsLote_GNRE xmlEnvio, Parametro oParam)
        {
            var Key = ExecutaServico(oServico, xmlEnvio, oParam);

            try
            {
                var Value = XMLUtils.LoadXML <TResultLote_GNRE>(Key);
                return(new KeyValuePair <string, TResultLote_GNRE>(Key, Value));
            }
            catch (Exception ex)
            {
                Key = ex.Message + " - " + Key;
                return(new KeyValuePair <string, TResultLote_GNRE>(Key, null));
            }
        }