I created the Process to extract the required data from ADT message to a Dynamic Object. I wanted to send the JSON stream to EnsLib.File.PassthroughOperation operation and generate a file with the content of JSON stream.
Here are the codes for Process:
set oMetadata = ... /// metadata is from ADT message which is dynamic object
set jsonRequest = ##class(%ZEN.Auxiliary.jsonProvider).%ObjectToJSON(oMetadata)
set tSC = ..SendRequestAsync(..JSONOperation,jsonRequest,0,,..MetadataContext) /// send the jsonRequest to operation
Here are the errors in the operation: "ERROR <Ens>ErrGeneral: No MessageBody classname for MessageHeader"
I know there is no such messagebody class for the jsonRequest as it is a custom object. My question is how I should do to create the message body for the custom jsonRequest and how to generate a file with this jsonRequest content in the operation that utilizes EnsLib.File.PassthroughOperation or other proper class?