Can a JSON variable (%Library.DynamicObject) ever be a property in an Ens.Request object? Nothing but <INVALID OREF> errors
I have a process that takes data from a CSV file (actually a record mapper object) and creates a nicely formatted JSON string I would love to send this along to a RESTful business operation. However no matter what I try, I continually get <INVALID OREF> errors when trying to populate the object that extends Ens.Request to give it the JSON string.
I can add strings, other objects, you name it - but stuffing a JSON formatted variable/object into another object I want to send someplace is proving to be an impossibility.
Does anyone have an example of sending an Ens.Request or other object (not an HTTPRequest object - but some other custom object) containing a JSON string to an Operation where the operation ultimately pulls the JSON from the object that was sent to it, makes the REST POST call and sends the response back?
Many thanks in advance! For some reason, every example I see deals with building "services", and the operations used have examples that have everything BUT a JSON payload. Is there some magic words or special dance I am missing? ;-)
(I also included the Cache tag since just the simple act of creating a class that extends %Persistent, having a property that is %Library.DynamicObject or arrays or anything, cannot seem to accept a JSON formatted variable as a value without blowing OREF errors.)