Tuesday, July 12, 2022

[FIXED] How to stub MQ response ?

Issue

As part of new development, we are integrating with external system, which is still in the development phase. In order to test our own code, how can we stub External system response so we don't end up in surprise when the actual Integration starts? We have the agreed mapping formats.

Any thoughts around the Best Practices would be great.

  • Message Type : XML
  • Communication : IBM MQ

Solution

Assuming your mq transport will consist of you sending requests on one queue and receiving responses on another, you simply create an external process that consumes from your request queue, approximates a response and sends a response back on the response queue.



Answered By - Nicholas
Answer Checked By - Gilberto Lyons (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.