IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
Expand all | Collapse all

Passing MQMD header while calling WTX map from Datapower

  • 1.  Passing MQMD header while calling WTX map from Datapower

    Posted 06/29/11 03:42 PM

    Originally posted by: SystemAdmin


    Hi,

    Till now i have worked on few services where calling a WTX map with content of the message, but now i have requirment to pass MQMD also along with with content of the message while calling WTX map from DataPower.

    Is this possible, what is the configuration required in Datapower Binary Transformation action?

    thank you

    SOAI
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 2.  Re: Passing MQMD header while calling WTX map from Datapower

    Posted 07/06/11 04:55 PM
      |   view attached

    Originally posted by: SystemAdmin


    MQMD headers are not the part of request i think you mean MQRFH or MQIMS header based on your transaction type at back end. To do so create a MQRFH2 type tree and put that tree as output card before the request and set the appropriate values. sample rfh header type tree is attached. and to send the MQMD header along with request use xsl and set mqmd header like below.
    <xsl:variable name="RFH2">
    <MQRFH2>
    <StrucId>RFH</StrucId>
    <Version>2</Version>
    <Format>MQSTR</Format>
    <NameValueData>
    <NameValue>
    <mcd>
    <Msd>jms_text</Msd>
    </mcd>
    </NameValue>
    <NameValue>
    <jms>
    <Tms>
    <xsl:value-of select="$time" />
    </Tms>
    <Dst>
    <xsl:value-of select="concat('queue:///',$mqueue)" />
    </Dst>
    <Dlv>2</Dlv>
    </jms>
    </NameValue>
    <NameValue>
    <usr>
    <myproperty1>123456</myproperty1>
    <myproperty2>helloworld</myproperty2>
    </usr>
    </NameValue>
    </NameValueData>
    </MQRFH2>
    </xsl:variable>

    <xsl:variable name="rfh2Str">
    <dp:serialize select="$RFH2" omit-xml-decl="yes" />
    </xsl:variable>

    <dp:set-request-header name="'MQRFH2'" value="$rfh2Str" />

    Thanks
    Abhishek
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender

    Attachment(s)