Prezados
Estou postando esse XML abaixo, para a operação e serviço que permite o manifesto de um documento fiscal:
/RecepcaoEvento/RecepcaoEvento.asmx?op=nfeRecepcaoEvento
Porém estou obtendo o retorno:
"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><nfeRecepcaoEventoResult xmlns=\"http://www.portalfiscal.inf.br/nfe/wsdl/RecepcaoEvento\"><retEnvEvento versao=\"1.00\" xmlns=\"http://www.portalfiscal.inf.br/nfe\"><idLote>000000000000000</idLote><tpAmb>1</tpAmb><verAplic>AN_1.0.0</verAplic><cOrgao>91</cOrgao><cStat>225</cStat><xMotivo>Rejeicao: Falha no Esquema XML do lote de NF-e</xMotivo></retEnvEvento></nfeRecepcaoEventoResult></soap:Body></soap:Envelope>"
Alguém poderia ajudar-me a entender o que estou errando?
Obrigado
XML ENVIADO:
@data = "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<soap12:Envelope xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">
<soap12:Header>
<nfeCabecMsg xmlns=\"http://www.portalfiscal.inf.br/nfe/wsdl/RecepcaoEvento\">
<versaoDados>1.00</versaoDados>
<cUF>35</cUF>
</nfeCabecMsg>
</soap12:Header>
<soap12:Body>
<nfeDadosMsg xmlns=\"http://www.portalfiscal.inf.br/nfe/wsdl/RecepcaoEvento\">
<envEvento xmlns=\"http://www.portalfiscal.inf.br/nfe\" versao=\"1.00\">
<idLote>135170005324982</idLote>
<evento xmlns=\"http://www.portalfiscal.inf.br/nfe\" versao=\"1.00\">
<infEvento Id=\"ID#{ciencia_operacao}#{chNFe}01\">
<cOrgao>35</cOrgao>
<tpAmb>1</tpAmb>
<CNPJ>#{cnpj}</CNPJ>
<chNFe>#{chNFe}</chNFe>
<dhEvento>#{DateTime.now.new_offset(Rational(-3, 24)).to_s}</dhEvento>
<tpEvento>1</tpEvento>
<nSeqEvento>1</nSeqEvento>
<verEvento>1.00</verEvento>
<detEvento versao=\"1.00\">
<descEvento>Ciencia da Operacao</descEvento>
</detEvento>
</infEvento>
<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/2000/09/xmldsig#rsa-sha1\" />
<Reference URI=\"ID#{ciencia_operacao}#{chNFe}01\">
<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/2000/09/xmldsig#sha1\"/>
<DigestValue>BqFJUYCrIzQIF0eLHguI+/+cZJM=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>IhXNhbdL1F9UGb2ydVc5v/gTB/y6r0KIFaf5evUi1i ...</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>MIIFazCCBFOgAwIBAgIQaHEfNaxSeOEvZGlVDANB ... </X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</evento>
</envEvento>
</nfeDadosMsg>
</soap12:Body>
</soap12:Envelope>"