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")); }
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)); } }
public static ITRetEnviNFe EnviarEnvelope(SoapHttpClientProtocol oServico, ITEnviNFe oEnviNFe, Parametro oParam, VersaoXML versao) { return(ExecutaServico <ITRetEnviNFe, ITEnviNFe>(oServico, TService.Autorizacao, oEnviNFe, oParam, versao, "TRetEnviNFe")); }