Service Virtualization

 View Only

 IBM MQ Custom Headers in Response Queue

Kazvin Mendez's profile image
Kazvin Mendez posted Oct 21, 2025 12:10 PM

Hello,

I am trying to use the IBM MQ Native VSE Response step to add a custom header to the response with a value of true or false. Under the Put Options Open Editor I see no option to add any values here. 

Shiney Abraham's profile image
Broadcom Employee Shiney Abraham

You can do this directly in the VSI's response meta-data.
 for example: 
 msg.putTime=13480176
 
 What type of headers are you trying to respond with ?  RFH2 headers? if so, please see this communities post
 https://community.broadcom.com/communities/community-home/digestviewer/viewthread?MID=796937
 
  
OR  Use  a response-side  scriptable DPH:
 
 import com.itko.util.ParameterList;

 

response = testExec.getStateObject("lisa.vse.response").get(0);

md = response.getMetaData();

//md.setParameterValue("msg.persistence","4");

md.setParameterValue("msg.characterSet","UTF-8");

 

// save the meta-data back to the response

//response.setMetaData(md);

 

lisa_vse_response.setMetaData(md);

hope this helps. 

Thanks

Shiney Abraham