... OutStream := OutMessage.GetStream; CREATE(DOMDocument); TempBlob.Blob.CREATEOUTSTREAM(BlobOutStream); DataXMLPort.SETDESTINATION(BlobOutStream); DataXMLPort.EXPORT; TempBlob.Blob.CREATEINSTREAM(BlobInStream); DOMDocument.load(BlobInStream); DOMDocument.save(OutStream); InMessage := OutMessage.SendWaitForReply(GetTimeout); ...Receiving the message looks like this:
InStream := InMessage.GetStream; CREATE(DOMDocument); DOMDocument.load(InStream); ...On loading the InStream to the DOMDocument an error occurs that the Elements are not closed correctly as if the InStream was not transferred completely. I don't know why. Messages with less content are transferred perfectly.
Comments
When the InStream is loaded directly into a File or imported to a Table by an XMLPort everything works fine - even if large content is transferred.