Reasons for pResponse not being sent back to service from process
I have a pResponse output in my onrequest method, in here I build an ACK and set the pResponse variable to it, and return a status object afterwards.
The pResponse doesn't show up in the trace or message viewer, yet if I move the interface to another more established namespace it works fine, what settings or config could be preventing the ACKS going back?
Comments
You need to do either:
- Send request to your BO in a sync mode.
- Wait for your async request to complete.
You're sending request in async mode and don't wait for a response that's why response is not recorded - there's nothing waiting for it.
That makes sense but why does it work on one namespace and not another?
Switching all sends to Synchronous did also not work
Before you quit the onrequest method do this:
Set sc = pResponse.%Save()
Set ^dbg($i(^dbg)) = $lb($h, sc, pResponse.%Id())Then check ^dbg global, sc must be 1 and there should be an id. Try to open pResponse object from a terminal.