예제 #1
0
 public static TConfigUf GNREConfigUF(SoapHttpClientProtocol oServico, TConsultaConfigUf xmlEnvio, Parametro oParam, VersaoXML versao)
 {
     return(ExecutaServico <TConfigUf, TConsultaConfigUf>(oServico, TService.GNRE_ConsultaLote, xmlEnvio, oParam, oParam.versao, "TConfigUf"));
 }
        public static KeyValuePair <string, TConfigUf> Interface_GNREConfigUF(SoapHttpClientProtocol oServico, TConsultaConfigUf xmlEnvio, Parametro oParam)
        {
            var Key = ExecutaServico(oServico, xmlEnvio, oParam);

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