EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Generete Digestvalue, x509Certificate and signaturevalue

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#11135
Posted: 09/25/2009 08:12:54
by Gabriel Herdt (Standard support level)
Joined: 04/09/2008
Posts: 37

Hi again,
In my procedure

Parameter FXMLDocument.OuterXML have value =
Code
Parameter have value= <?xml version="1.0" encoding="utf-8"?>
<enviNFe xmlns="http://www.portalfiscal.inf.br/nfe" versao="1.10"><idLote>38310</idLote><NFe xmlns="http://www.portalfiscal.inf.br/nfe"> ...  


But save value =
Code
Parameter have value= <?xml version="1.0" encoding="utf-8"?>
<enviNFe xmlns="http://www.portalfiscal.inf.br/nfe" versao="1.10"><idLote>38310</idLote><NFe> ...  


I Can Resolve this problem? My Tag <NFe> differs.


Code
Procedure TRDmConBas.SalvaArq(Caminho: string);
var
  F: {$ifndef DELPHI_NET}TFileStream{$else}FileStream{$endif};
begin
  {$ifndef DELPHI_NET}
  F := TFileStream.Create(Caminho, fmCreate or fmOpenWrite);
  {$else}
  F := System.IO.FileStream.Create(Caminho, FileMode.Create, FileAccess.ReadWrite);
  {$endif}
  try
    MessageDlg('salva- '+FXMLDocument.OuterXML, mtWarning, [mbOK], 0);
    FXMLDocument.SaveToStream(F, xcmCanon, 'utf-8');
  except
    on E : Exception do
    begin
      MessageDlg('Error: ' + E.Message, mtError, [mbOk], 0);
    end;
  end;

  FreeAndNil(F);
end;


Gabriel Herdt
Consystec
#11138
Posted: 09/25/2009 11:45:56
by Eugene Mayevski (EldoS Corp.)

Is this a new problem? If yes, please re-post it as a separate topic and explain where is the XML content taken from.


Sincerely yours
Eugene Mayevski
#12655
Posted: 03/02/2010 16:32:54
by Marcio Lima (Basic support level)
Joined: 03/02/2010
Posts: 1

Hi,

i from Brazil, i need sign a XML for example:

<GerarNfseEnvio xmlns="http://www.abrasf.org.br/nfse.xsd">
<LoteRps Id="lote" versao="1.00">
<ListaRps>
<Rps>
<InfRps>
<----- here

<Rps>
</ListaRps>
<----- here

</GerarNfseEnvio>


have example?

Tks

Márcio L
#12672
Posted: 03/03/2010 07:46:28
by Dmytro Bogatskyy (EldoS Corp.)

You can use XMLBlackbox\Signer sample. Just need to sign an xml document twice.
The placement of the signature is controlled using ElXMLSigner.Save method (in the sample it is controlled basing on a selected node in the tree). You could fill the references (what you sign) depending on your requirements (the sample also use a selected node).
Futher questions please post in a separate topic or to Helpdesk

Reply

Statistics

Topic viewed 61064 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!