Example #1
0
 public DistribuicaoDFeServiceClient(CTeConfig config, DFeCodUF uf, X509Certificate2 certificado = null) :
     base(config, CTeServiceManager.GetServiceAndress(config.Geral.VersaoDFe, uf.ToSiglaUF(), TipoServicoCTe.CTeConsultaCadastro, config.Geral.FormaEmissao, config.WebServices.Ambiente),
          "http://www.portalfiscal.inf.br/cte/wsdl/CTeDistribuicaoDFe/cteDistDFeInteresse",
          "http://www.portalfiscal.inf.br/cte/wsdl/CTeDistribuicaoDFe", config.WebServices.UF, certificado, "cteDistDFeInteresse")
 {
     Schema = SchemaCTe.DistDFeInt;
 }
 /// <inheritdoc />
 ///  <summary>
 ///  </summary>
 ///  <param name="config"></param>
 ///  <param name="service"></param>
 ///  <param name="certificado"></param>
 protected CTeServiceClient(CTeConfig config, TipoServicoCTe service, X509Certificate2 certificado = null) :
     base(config, CTeServiceManager.GetServiceAndress(config.Geral.VersaoDFe, config.WebServices.UF.ToSiglaUF(),
                                                      service, config.Geral.FormaEmissao, config.WebServices.Ambiente), certificado)
 {
 }
Example #3
0
 public ConsultaCadastroServiceClient(CTeConfig config, DFeCodUF uf, X509Certificate2 certificado = null) :
     base(config, CTeServiceManager.GetServiceAndress(config.Geral.VersaoDFe, uf.ToSiglaUF(),
                                                      TipoServicoCTe.CTeConsultaCadastro, config.Geral.FormaEmissao, config.WebServices.Ambiente), certificado)
 {
     Schema = SchemaCTe.ConsCad;
 }