My question is so simple.
I need to use a XML Document (declared as a Automation variable) with a XML Port created on the Classic Client.
I´ve been search in the forum and found some responses on how to load a XML Document but there is no responses in the other way.
I try this code (and some more) but doesn´t work:
TempBlob.Blob.CREATEINSTREAM(StreamIn);
XMLDoc.load(StreamIn);
// Llamada al XML Port
CLEAR(xmlImportacion);
xmlImportacion.SETSOURCE(StreamIn);
xmlImportacion.IMPORT;
Has anybody the same problem or it's easier than this.
I´m thinking that the only way its saving the XML Document to disk and then read it ...
So frustrated ](*,)
0
Comments
Now your blob keeps the XML data. Then stream into an instream:
Then import it using the XMLport:
And it must work.
http://vjeko.com/
I tried with the same instructions but need something more.
Only one thing, you must modify your code because the highlighted line need a little modification.
CLEAR(TempBLOB.Blob);
TempBLOB.Blob.CREATEOUTSTREAM(Outstr);
XmlDoc.save(Outstr);
TempBLOB.CALCFIELDS(Blob);
TempBLOB.Blob.CREATEINSTREAM(Instr);
XMLPORT.IMPORT(NoXMLPort,Instr);
Thanks again
http://vjeko.com/