Pessoal,
Estou tentando consultar o status do servico na nfe 2.0, mas estou recebendo o seguinte retorno:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ns2:nfeCabecMsg xmlns:ns2="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2">
<ns2:cUF>31</ns2:cUF>
<ns2:versaoDados>2.00</ns2:versaoDados>
</ns2:nfeCabecMsg>
</soap:Header>
<soap:Body>
<ns2:nfeStatusServicoNF2Result xmlns:ns2="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2">
<retConsStatServ xmlns="http://www.portalfiscal.inf.br/nfe" versao="2.00">
<tpAmb>2</tpAmb>
<verAplic>0582</verAplic>
<cStat>215</cStat>
<xMotivo>Rejeicao: Falha no schema XML</xMotivo>
<cUF>31</cUF>
<dhRecbto>2010-03-19T02:32:04</dhRecbto>
</retConsStatServ>
</ns2:nfeStatusServicoNF2Result>
</soap:Body>
</soap:Envelope>
Este é o envelope soap que estou enviando:
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Header>
<nfeCabecMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2">
<versaoDados>2.00</versaoDados>
<cUF>31</cUF>
</nfeCabecMsg>
</soap12:Header>
<soap12:Body>
<nfeStatusServicoNF2 xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2">
<nfeDadosMsg xmlns="http://www.portalfiscal.inf.br/nfe">
<consStatServ versao="2.00"
xmlns:ns2="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe">
<tpAmb>2</tpAmb>
<cUF>31</cUF>
<xServ>STATUS</xServ>
</consStatServ>
</nfeDadosMsg>
</nfeStatusServicoNF2>
</soap12:Body>
</soap12:Envelope>
Ja coloquei meu xml para validar no endereco: http://www.sefaz.rs.gov.br/NFE/NFE-VAL.aspx
Ele retorna que esta ok.
Não estou conseguindo encontrar onde esta o erro, por favor, se alguem souber de algo para me ajudar ficarei muito grato.
abraços.
