NF-e in Delphi accessing WSDL

1

NF-e in Delphi accessing WSDL.

I'm not experimenting on accessing servers in WSDL, nor NFe.

I have available some encapsulated methods reported 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, but I have to use the provided functions, in this case pass two parameters. I do not know how to use it. I need to know exactly what to write in these parameters. I have an example of an XML file but what I need are two parameters for a function, I know the first is the header and the second is the Data.

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

I 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 do not know what are the correct parameters WideString that I should pass to nfseCabecMsg and nfseDadosMsg .

This is the error message produced by ShowMesssage

BelowisanexampleoftheXMLpartofthesampleimage:

I hope I have been clear, and passed my question correctly.

Thank you.

    
asked by anonymous 24.05.2017 / 17:31

0 answers