PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, July 12, 2022

[FIXED] How to stub MQ response ?

 July 12, 2022     ibm-mq, message, unit-testing, xml     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing