REST POST Response details
When a REST message is posted to a 3rd party vendor, and it is unsuccessful, we can only a few pieces of information from the response, like IBException.ToString(), IBException.MessageNumber, MessageSetNumber, and HTTPResponseCode.
But the xmlLog.html has more information. And the vendor sends more detail to explain the 4xx and 5xx codes.
Is there way to get that information using PeopleCode in an AE program?
Comments
-
Thanks for posting this. I have requested a product expert to review and provide feedback on this.
1 -
hi Richard,
To capture response errors from the 3rd party, select the User Exception checkbox on routing definition being used, and write the PeopleCode to handle the errors. You might not be able to pull all the desired information, but it should be better.
Please see the following two documents for additional information. The second doc below has the details and provides a screenshot of the checkbox.
E-IB: How To Capture and Handle Error Response For Rest Web Service (Doc ID 2360641.1)
E-IB/AE: Using SyncRequest() with Try / Catch Causes Error "Field does not exist -- STATE_RECORD.FIELD" or "There is no current buffer context." (Doc ID 1291147.1)
Thanks,
Mike
1