Gaolai Peng · Nov 8, 2018

How to get a SDA3.Container object from a Stream object

I am trying to get SDA3.Container object from a Stream object like following code:


Method HandleECRUpdateRequest(pRequest As CUSTOM.CORE.Message.ECRUpdateRequest, ByRef pResponse As Ens.Response) As %Status

               Set tContainer=##Class(HS.SDA3.Container).%New()
               $$$ThrowOnError(tContainer.InitializeXMLParse(pRequest.ContentStream, "SDA3"))
               Set tEventDescription=tContainer.EventDescription


But it tContainer seems to be empty. The tEventDescription is set to empty. I need work on the whole HS.SDA3.Container converted from ContentStream in a ECRUpdateRequest. Doesn't anyone know how to achieve this?



0 623
Discussion (1)3
Log in or sign up to continue

We try to not operate on an entire container, since containers can be arbitrarily large.  The API that you are using is one that should be combined with GetNextSDA, to process one streamlet at a time.