Search code examples
xsltxslt-1.0xslt-2.0ibm-mqibm-datapower

To read a message from Queueu using xsl


I have a scenario as below.

Request : MQFSH - > MPGW (We will soter MQ header of request in Q1) --> http backend
Response : http response --> MPGW ( read the MQMD header message stored in Q1 and append to reponse message) -- > MQ 

please let me know how to read a message from Q1 in xsl?

Thanks & Reagrds, Sreevathsa A 9986186302


Solution

  • Am able to write and read a message within transform action using xsl.

    Writing :

    <dp:url-open target="dpmq://qmgr/?RequestQueue=queue_name" response="responsecode-ignore">
    

    Reading :

    <dp:url-open target="dpmq://qmgr/?ParseHeaders=true;ReplyQueue=queue_name" response="xml"/>
    

    Thanks, Sreevathsa A