NF-e in Delphi accessing WSDL

Asked

Viewed 294 times

1

NF-e in Delphi accessing WSDL.

I am not experienced in accessing WSDL servers, nor Nfe.

I have available some encapsulated methods informed to be used in Delphi.

The method I’m trying to access is this:

function  RecepcionarLoteRpsSincrono(const nfseCabecMsg: WideString; const nfseDadosMsg: WideString): WideString; stdcall;

The examples I have are complete XML files, only I have to use the provided functions, in this case pass two parameters. I don’t know how to use it. I need to know exactly what to write in these parameters. I have example of an XML file but what I need are two parameters for a function, I know that the first is the header and the second are the Data.

I already copied the XML for the parameters, part of them, referring to the header I did what was within my reach.

I’ll make the call:

var
  Cabeca, Dados,
  Retorno : WideString;
Begin
  // ... outros códigos
  Cabeca := memCabeca.Text;//TMemo
  Dados := memDados.Text;//TMemo
  Retorno := nfseuse.RecepcionarLoteRpsSincrono(Cabeca, Dados);
  ShowMessage(Retorno);
End;

I don’t know what the correct parameters are WideString that I must pass on to nfseCabecMsg and nfseDadosMsg.

This is the error message produced by ShowMesssage

Resultado do ShowMessage

Below part image of the XML set an example:

Imagem de parte do XML fornecido de exemplo

I hope I’ve been clear, and passed my doubt correctly.

Thank you.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.