Written by

Integration specialist at SInt Maartenskliniek
Question Rob Schoenmakers · May 10, 2023

How to put a stream into a HS.SDA3.Container?

Please help,

I'm using a SearchAndFetchRequest to retrieve a full SDA3 Container from the ACCESS gateway. The response is presented in the pResponse.SearchAndFetchGeneralResult.XMLData property. This property is of type string. I want to put the data from this property in a HS.SDA3.Container and then use this container is a dtl for translation purposes. My current data in the XMLData property is too large to fit in a string. Therefore I'm searching for a way to convert te data to a stream and that import the stream into my Container...

When i read the documentation of the HS.SDA3.Container the only method to do such a thing is XMLImportSDAString. This doesn't work for a stream i think... 

Can somebody help?

Product version: IRIS 2022.1

Comments

David.M · May 10, 2023

Normally we don't put the full SDA into a Container object because it can be quite large. Instead, you are supposed to loop through the streamlets and put each into an object (there are methods for doing this). Do you really need the full SDA as an object?

0
David.M  May 16, 2023 to David.M

Maybe you can use the ##class(%XML.Reader).Correlate method.

0