Written by

Integration Engineer at ReStart Consulting
Question William Glover · Jun 26, 2023

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

Eduard Lebedyuk · Jun 26, 2023

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.

0
William Glover  Jun 26, 2023 to Eduard Lebedyuk

That makes sense but why does it work on one namespace and not another?

0
William Glover  Jun 26, 2023 to William Glover

Switching all sends to Synchronous did also not work

0
Eduard Lebedyuk  Jun 27, 2023 to William Glover

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.

0