示例#1
0
 public static ITRetEnviNFe EnviarEnvelope(
     System.Web.Services.Protocols.SoapHttpClientProtocol oServico,
     ITEnviNFe oEnviNFe, Parametro oParam, VersaoXML versao)
 {
     return((ITRetEnviNFe)XMLUtils.CarregaXML_STR(ExecutaServico(oServico, oEnviNFe, oParam),
                                                  versao, "TRetEnviNFe"));
 }
示例#2
0
        public static KeyValuePair <string, ITRetEnviNFe> Interface_EnviarEnvelope(
            System.Web.Services.Protocols.SoapHttpClientProtocol oServico,
            ITEnviNFe oEnviNFe, Parametro oParam, VersaoXML versao)
        {
            var Key = ExecutaServico(oServico, oEnviNFe, oParam);

            try
            {
                var Value = (ITRetEnviNFe)XMLUtils.CarregaXML_STR(Key, versao, "TRetEnviNFe");
                return(new KeyValuePair <string, ITRetEnviNFe>(Key, Value));
            }
            catch (Exception ex)
            {
                Key = ex.Message + " - " + Key;
                return(new KeyValuePair <string, ITRetEnviNFe>(Key, null));
            }
        }
示例#3
0
 public static ITRetEnviNFe EnviarEnvelope(SoapHttpClientProtocol oServico, ITEnviNFe oEnviNFe, Parametro oParam, VersaoXML versao)
 {
     return(ExecutaServico <ITRetEnviNFe, ITEnviNFe>(oServico, TService.Autorizacao, oEnviNFe, oParam, versao, "TRetEnviNFe"));
 }