varXmlFile.CREATE(FilePath+'\xmlout.xml') varXmlFile.CREATEOUTSTREAM(varOutputStream); XMLPORT.EXPORT(XMLPORT::"The XMLPort I Am Running", varOutputStream); varXmlFile.CLOSE;
lFilename := 'SomeRecords.xml'; lServerFilename := lFileMgt.ServerTempFileName('xml'); XMLFile.CREATE(lServerFilename); XMLFile.CREATEOUTSTREAM(lOutstrXML); XMLPORT.EXPORT(XMLPORT::"Export Some Lines", lOutstrXML, lrecSomeRecord); XMLFile.CLOSE; lFileMgt.DownloadToFile(lServerFilename, lFilename);
Answers
This is not weird, this is 3 tier ...
We use codeunit 419 to get a xmlfile to the client.
Good luck.