Webservice Nota Nacional | Vila Velha/ES - 3205200

Novos endpoints

    end_prod = "https://tributacao.vilavelha.es.gov.br/tbw/services/NotaFiscalNacional";
    end_homo = "http://tributacao.vilavelha.es.gov.br:8080/tbwhomologacao/services/NotaFiscalNacional";

Exemplo de chamada SOAP para

        "<soapenv:Envelope ".
        " xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" ".
        " xmlns:nfse=\"http://webservices.sil.com/\">\n".
        "   <soapenv:Header/>\n".
        "   <soapenv:Body>\n".
        "     <nfse:NotaFiscalNacionalGerar>\n".
        "       <xml><![CDATA[%DadosMsg%]]></xml>\n".
        "     </nfse:NotaFiscalNacionalGerar>\n".
        "   </soapenv:Body>\n".
        "</soapenv:Envelope>\n";

Exemplo de XML para Tomador Estrangeiro:

<NFSe xmlns="http://www.sped.fazenda.gov.br/nfse" versao="1.01">
    <infNFSe Id="NFS32052001212345678000189000000290877426010000000001">
        <xLocEmi>3205200</xLocEmi>
        <xLocPrestacao>Vila Velha</xLocPrestacao>
        <nNFSe>0</nNFSe>
        <cLocIncid>3205200</cLocIncid>
        <xLocIncid>Vila Velha</xLocIncid>
        <xTribNac>Hospedagem em hotéis</xTribNac>
        <verAplic>NFSeX-1.00</verAplic>
        <ambGer>1</ambGer>
        <tpEmis>2</tpEmis>
        <cStat>100</cStat>
        <dhProc>2026-01-09T12:27:54-03:00</dhProc>
        <nDFSe>2908774</nDFSe>
        <emit>
            <CNPJ>12345678000189</CNPJ>
            <IM>76477</IM>
            <xNome>HOTEL</xNome>
            <enderNac>
                <xLgr>RODOVIA SOL</xLgr>
                <nro>123</nro>
                <xBairro>PRAIA DE ITAPARICA</xBairro>
                <cMun>3205200</cMun>
                <UF>ES</UF>
                <CEP>29000000</CEP>
            </enderNac>
        </emit>
        <valores>
            <vBC>439.13</vBC>
            <pAliqAplic>3.00</pAliqAplic>
            <vISSQN>13.17</vISSQN>
            <vLiq>439.13</vLiq>
        </valores>
        <DPS xmlns="http://www.sped.fazenda.gov.br/nfse" versao="1.01">
            <infDPS Id="DPS320520022610605800010800001000000010000255">
                <tpAmb>1</tpAmb>
                <dhEmi>2026-01-08T00:00:00-03:00</dhEmi>
                <verAplic>NFSeX-1.00</verAplic>
                <serie>00001</serie>
                <nDPS>10000255</nDPS>
                <dCompet>2026-01-08</dCompet>
                <tpEmit>1</tpEmit>
                <cLocEmi>3205200</cLocEmi>
                <prest>
                    <CNPJ>12345678000189</CNPJ>
                    <IM>76477</IM>
                    <regTrib>
                        <opSimpNac>1</opSimpNac>
                        <regEspTrib>0</regEspTrib>
                    </regTrib>
                </prest>
                <toma>
                    <CNPJ>21569669000179</CNPJ>
                    <xNome>TRAVELSCAPE, LLC</xNome>
                    <end>
                        <endExt>
                            <cPais>US</cPais>
                            <cEndPost>00000000</cEndPost>
                            <xCidade>Exterior</xCidade>
                            <xEstProvReg>Exterior</xEstProvReg>
                        </endExt>
                        <xLgr>100 B WILLIAM STREET</xLgr>
                        <nro>204</nro>
                        <xBairro>NEVADA</xBairro>
                    </end>
                </toma>
                <serv>
                    <locPrest>
                        <cLocPrestacao>3205200</cLocPrestacao>
                    </locPrest>
                    <cServ>
                        <cTribNac>090101</cTribNac>
                        <xDescServ>HOSPEDE: JOSÉ DA SILVA | Trib aprox R$:59,06 Fed, 0,00 Est e 13,17 Mun|Fonte: IBPT/FECOMERCIO ES 81AAFF</xDescServ>
                        <cNBS>103031100</cNBS>
                    </cServ>
                </serv>
                <valores>
                    <vServPrest>
                        <vServ>439.13</vServ>
                    </vServPrest>
                    <trib>
                        <tribMun>
                            <tribISSQN>1</tribISSQN>
                            <tpRetISSQN>1</tpRetISSQN>
                        </tribMun>
                        <totTrib>
                            <indTotTrib>0</indTotTrib>
                        </totTrib>
                    </trib>
                </valores>
            </infDPS>
        </DPS>
    </infNFSe>
    <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="#NFS32052001226106058000108000000290877426010000000001">
                <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>mLtAE6UvxhQfdTdfPM8QmU07FoA=</DigestValue>
            </Reference>
        </SignedInfo>
        <SignatureValue>HXVzt....12vtsqmA8g==</SignatureValue>
        <KeyInfo>
            <X509Data>
                <X509Certificate>MIIH....tZbKMhhVPd0Gsao7yA01pw==</X509Certificate>
            </X509Data>
        </KeyInfo>
    </Signature>
</NFSe>

OBSERVAÇÃO:
Para que a prefeitura reconheça o emitente, precisa preencher a TAG com os dados do Prestador

Este tópico foi fechado automaticamente 3 dias depois da última resposta. Novas respostas não são mais permitidas.