Olá
Já estou com o certificado configurado, porém ao enviar o XML estou recebendo a resposta
{ “message”: “The request entity’s media type ‘application/xml’ is not supported for this resource.” }
Estou enviando um XML igual ao 2025-05-15 DPS_fake exemplo ++nfse (2) fornecido nesse fórum
O XML é esse anexado :
<?xml version="1.0" encoding="UTF-8"?>
<DPS versao="1.00" xmlns="http://www.sped.fazenda.gov.br/nfse">
<infDPS Id="DPS431490220100200300018001000000000000000001">
<tpAmb>2</tpAmb>
<dhEmi>2023-10-28T10:31:00-03:00</dhEmi>
<verAplic>8.0</verAplic>
<serie>1000</serie>
<nDPS>1</nDPS>
<dCompet>2023-10-28</dCompet>
<tpEmit>1</tpEmit>
<cLocEmi>4314902</cLocEmi>
<prest>
<CNPJ>01002003000180</CNPJ>
<fone>5121026080</fone>
<regTrib>
<opSimpNac>3</opSimpNac>
<regApTribSN>3</regApTribSN>
<regEspTrib>0</regEspTrib>
</regTrib>
</prest>
<toma>
<CNPJ>02005639000109</CNPJ>
<IM>16412729000</IM>
<xNome>Nome Tomador LTDA</xNome>
<end>
<endNac>
<cMun>4314902</cMun>
<CEP>91710020</CEP>
</endNac>
<xLgr>R GEN.JONATHAS BORGES FORTES</xLgr>
<nro>220</nro>
<xBairro>GLORIA</xBairro>
</end>
<fone>5134121400</fone>
<email>compras@dobil.com.br</email>
</toma>
<serv>
<locPrest>
<cLocPrestacao>4314902</cLocPrestacao>
</locPrest>
<cServ>
<cTribNac>140101</cTribNac>
<xDescServ>SERVICO DE MANUTENCAO -BOMBA MANGOTE 2'/3' Data de Vencimento: 11/10/2023, Valor: R$ 258,00 - Regime Especial de Tributacao: ME ou EPP do Simples Nacional</xDescServ>
<cIntContrib>1401</cIntContrib>
</cServ>
</serv>
<valores>
<vServPrest>
<vServ>1.00</vServ>
</vServPrest>
<trib>
<tribMun>
<tribISSQN>1</tribISSQN>
<pAliq>5.00</pAliq>
<tpRetISSQN>1</tpRetISSQN>
</tribMun>
<totTrib>
<pTotTrib>
<pTotTribFed>8.00</pTotTribFed>
<pTotTribEst>0.00</pTotTribEst>
<pTotTribMun>5.00</pTotTribMun>
</pTotTrib>
</totTrib>
</trib>
</valores>
</infDPS>
<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="#DPS431490220100200300018001000000000000000001">
<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>0IjYYPNVwxfP0PhharTY26x98ek=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>JzoWfPTYm/LIR6QPrIXn1U+z60/wimeaOe ............. fZ8lK+BliFGEVCcuLEUIeihxPUFypooGIzw==</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>MIIH+TCCBeGgAwIBAgIIb7I2on/0JpkwDQYJKoZ.... aKneOErnwm3vmi31xW3I2G4SFwl4=</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</DPS>
