Código: Selecionar todos
cChaveNfe:="17120905511763000110550010000092171000092174"
oConsulta := hbNFeConsulta()
oConsulta:ohbNFe := oNfe // Objeto hbNFe
oConsulta:cChaveNFe := cChaveNFe // Chave ou pode ser um arquivo xml com o parametro cNFeFile
aRetorno := oConsulta:execute()
oConsulta := Nil
IF aRetorno['OK'] == .F.
MsgStop(aRetorno['MsgErro'])
ELSE
MsgInfo(aRetorno['tpAmb']+chr(13)+chr(10)+;
aRetorno['verAplic']+chr(13)+chr(10)+;
aRetorno['dhRecbto']+chr(13)+chr(10)+;
aRetorno['nProt']+chr(13)+chr(10)+;
aRetorno['digVal']+chr(13)+chr(10)+;
aRetorno['cStat']+chr(13)+chr(10)+;
aRetorno['xMotivo']+chr(13)+chr(10)+;
aRetorno['protNFe'])
ENDIF
Código: Selecionar todos
Falha
Error: 1001
SubC: 14
OSCode: 0
SubSystem: MSXML2.ServerXMLHTTP.5.0
Mensagem: DISP_E_BADPARAMCOUNT
Estou usando com xhb1.0.0 + hwgui 2.17

