Ver Mensaje Individual
  #10  
Antiguo 08-06-2017
afxe afxe is offline
Miembro
 
Registrado: jul 2004
Ubicación: Malaga-España
Posts: 273
Reputación: 20
afxe Va por buen camino
me gustaría subir algunos ejemplos, he metido en el beforepost del HTTRIO la captura del objeto Soap que se envía a la AEAT así:

Código Delphi [-]

procedure TDM_LibroRecibidas.HTTPRIO_RECBeforeExecute(const MethodName: string;
  SOAPRequest: TStream);
var
  sl : TStringList;
  sFile : String;
begin
  SOAPRequest.Position := 0;
  sl := TStringList.Create;
  try
    sl.LoadFromStream(SOAPRequest);
    sFile := ExtractFilePath(Application.ExeName) + 'SII\REC_' + FormatDateTime('yyyy-mm-dd_hh-nn_', now) + '.xml';
    sl.SaveToFile(sFile);
  finally
    sl.Free;
  end;
end;


Eso me genera un archivo XML, pero no tiene el formato de lo que estáis colgando aquí... con las etiquetas: <sii:Cabecera> (por ejemplo). ¿Cómo lo genero para colgar algunos ejemplos?

Saludos.
__________________
Amar al mundo apasionadamente.
Responder Con Cita