Boa tarde pessoal!
Eu acho que me expressei mal.
Eu gostaria de utilizar a consulta por um aplicativo de testes inicial, tipo o postman, para depois utilizar em um programa.
Porem o meu programa é em xHarbour para linux e não consegui linkar com as bibliotecas do ACBR, eu só utilizo o ACBRMonitor
Eu estou usando este copor para envio:
<?xml version="1.0" encoding="utf-8"?>
<distDFeInt versao="1.00" xmlns="http://www.portalfiscal.inf.br/nfe">
<tpAmb>1</tpAmb>
<cUFAutor>35</cUFAutor>
<CNPJ>CNPJ</CNPJ>
<distNSU>
<ultNSU>000000000000000</ultNSU>
</distNSU>
</distDFeInt>
e recebo isso:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<soap12:Upgrade xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:SupportedEnvelope qname="soap:Envelope" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" />
<soap12:SupportedEnvelope qname="soap12:Envelope" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" />
</soap12:Upgrade>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:VersionMismatch</faultcode>
<faultstring>Possible SOAP version mismatch: Envelope namespace http://www.portalfiscal.inf.br/nfe was unexpected. Expecting http://schemas.xmlsoap.org/soap/envelope/.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>
Também tentei isso:
<?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/nfedistribuicaodfe">
<cuf>91</cuf>
<versaodados>1.00</versaodados>
</nfecabecmsg>
</soap12:header>
<soap12:body>
<nfedistdfeinteresse xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/nfedistribuicaodfe">
<nfedadosmsg>
<distdfeint xmlns="http://www.portalfiscal.inf.br/nfe" versao="1.00">
<tpamb>1</tpamb>
<cufautor>35</cufautor>
<cnpj>00610742000139</cnpj>
<distnsu>
<ultnsu>000000000000001</ultnsu>
</distnsu>
</distdfeint>
</nfedadosmsg>
</nfedistdfeinteresse>
</soap12:body>
</soap12:envelope>
e recebo isso:
<?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>
<soap:Fault>
<soap:Code>
<soap:Value>soap:Receiver</soap:Value>
</soap:Code>
<soap:Reason>
<soap:Text xml:lang="en">Server was unable to process request. ---> Request format is invalid: Missing required soap:Envelope element.</soap:Text>
</soap:Reason>
<soap:Detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>
Na verdade eu não achei na documentação o formato correto para o envio através do Postman