Jump to content

Geovani Luiz

Membros
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Geovani Luiz

  • Rank
    Novato

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Consegui resolver, segue o consoleApplication: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Manifestacao.Library.Common; using ConsoleApplication3.CfeConsultaLotes; namespace ConsoleApplication3 { public class Program { static void Main(string[] args) { try { var uf = "SP"; var uf1 = "35"; const string _versaoDados = "0.08"; var str = @"<consLote xmlns=""http://www.fazenda.sp.gov.br/sat"" versao=""0.08""> <nserieSAT>003688909</nserieSAT> <dhInicial>01022019000000</dhInicial> <dhFinal>28022019000000</dhFinal> <chaveSeguranca>220df259-5918-4543-84f8-dc01e7c449a8</chaveSeguranca> </consLote>"; var CfeCliente = new CfeConsultaLotesSoapClient(); var cfeCabecMsg = new CfeCabecMsgSoapEntity() { cUF = uf1, versaoDados = _versaoDados }; var result = CfeCliente.ConsultarLotesEnviados(ref cfeCabecMsg, str); } catch (Exception) { throw; } } } } /*result*/ /* <resLote xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><infContribuinte /><Mensagem>Número de série inválido.</Mensagem><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" /><DigestValue>vYyQ/dtFZ1I/OqYbLwqI2FGvnu74STzoPHh6S6ZiF5c=</DigestValue></Reference></SignedInfo><SignatureValue>i2LLcsuOYcjJPnKBUQqEEulOxqL1Gq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gGQYFYEwBAwOgEAQONDYzNzcyMjIwMDAxMjmgLQYFYEwBAwKgJAQiTFVJWiBDTEFVRElPIFJPRFJJR1VFUyBERSBDQVJWQUxIT6A4BgVgTAEDBKAvBC0xMzA1MTk2ODE3Nzc1OTA3ODc4MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4ICAQBRPu0H/+eXBvSg5cpfKlUucktnNGuTJybn2OM0/sqD3v+E6LijicJ9FqdcK/RDXwvGBqx1qaEJe2ohYrpL5MKyyhylT5lANhPhkDopWkROJSPRPGJieztV2z97oplnPsBrFTL3rcy4aFoWekEgUQ6KNmTDsOJipoDj8wCWiECy4iBZJk1OApbjcI5R6A2UaoofLnq14T99xY4p7kcCGnQR2SR6bftFMRZVgRC8NmGs7AWL1RA8GYPVwbilx4LXJKgeU0G+XFV2QTyGzXMJuDHAU1D6uPTt4CRCHXKyD2WVkO4K3xONHJ+m150iiKXZTuBxw+uwt88otu1gVLR+oB9l1ZZdmyRjhLlqTJU+DaQwudWysKa+RnfIInFaWgdXmuG5svjkC029IM7SAZRhFeN7opgFIvkshrLh/Rsf22R0ROsCQimGdzU/YcqGRiV+PyalbU5slLyWLnREljWoTXIVIuiMzZSwAXggGXDdTYMjeRgzleSJQ7mMuGUaLAMggASEPkYGIAFQxWlJCrnOupLozhr/naULRjdYvOL69DYvWqRuyz7teBpmsr7fl1cmEqhU/eBpX+7mXZkv2DdIueHcS9EYbQ4X5opb7vWrc5miHd7pT/b8yoqo4aRX5ZG8YlfRuberYGoXh0kZVoSwtKjNb0y6PgLR9gzmjJueecb4Hw==</X509Certificate></X509Data></KeyInfo></Signature></resLote> */
  2. Alguem tem um exemplo em C# desta consulta funcionando porque aqui já tentei de diversas formas e ou retorna NULL ou XML mal formado! Pode ser em um ConsoleApplication por favor preciso de um exemplo!
×
×
  • Create New...