fabiofranzini Posted August 20 Share Posted August 20 Estou enroscado no seguinte, ao tentar enviar uma NFCe em contingencia para homologação tenho o erro: Observando o trecho do arquivo ACBrServicos.ini que se refere ao Ambiente escolhido temos: [NFCe_BA_H] Usar=NFCe_SVRS_H URL-QRCode=http://hnfe.sefaz.ba.gov.br/servicos/nfce/modulos/geral/NFCEC_consulta_chave_acesso.aspx URL-ConsultaNFCe=http://nfe.sefaz.ba.gov.br/servicos/nfce/default.aspx URL-ConsultaNFCe_2.00=http://hinternet.sefaz.ba.gov.br/nfce/consulta URL-QRCode_1.00=http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx URL-ConsultaNFCe_1.00=http://hinternet.sefaz.ba.gov.br/nfce/consulta e ao observar o trecho do schema leiauteNFe_v4.00.xsd temos: <xs:element name="qrCode"> <xs:annotation> <xs:documentation>Texto com o QR-Code impresso no DANFE NFC-e</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:whiteSpace value="preserve"/> <xs:minLength value="100"/> <xs:maxLength value="600"/> <xs:pattern value="(((HTTPS?|https?)://.*\?chNFe=[0-9]{44}&nVersao=100&tpAmb=[1-2](&cDest=([A-Za-z0-9.:+-/)(]{0}|[A-Za-z0-9.:+-/)(]{5,20})?)? &dhEmi=[A-Fa-f0-9]{50}&vNF=(0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?)&vICMS=(0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?)&digVal=[A-Fa-f0-9]{56}&cIdToken=[0-9]{6}&cHashQRCode=[A-Fa-f0-9]{40})|((HTTPS?|https?)://.*\?p=([0-9]{34}(1|3|4)[0-9]{9})\|[2]\|[1-2]\|(0|[1-9]{1}([0-9]{1,5})?)\|[A-Fa-f0-9]{40})|((HTTPS?|https?)://.*\?p=([0-9]{34}9[0-9]{9})\|[2]\|[1-2]\|([0]{1}[1-9]{1}|[1-2]{1}[0-9]{1}|[3]{1}[0-1]{1})\|(0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?)\|[A-Fa-f0-9]{56}\|(0|[1-9]{1}([0-9]{1,5})?)\|[A-Fa-f0-9]{40}))"/> </xs:restriction> </xs:simpleType> </xs:element> Resumindo, o que eu entendi é que obrigatoriamente o xsd exige que contenha https na url que esta dentro do qrcode, mas na url indicada isto não existe. Onde estou errando ? pois ao tentar enviar a NFCe, tenho erro exatamente neste pattern. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now