We need to get the MQ put time and MQ get time, both converted to datetime precise to seconds. I saw the service variables "time-forwarded" and "response-complete", however they do not seem to have the data we wanted. Is there any other service variables or contexts that can be used?
swlinn 100000E7QE1348 Posts
Re: Getting the MQ put time and MQ get time2012-02-24T14:39:40ZThis is the accepted answer. This is the accepted answer.The service variables are elapsed time in ms since the beginning of the request within DataPower. The MQ Put Date/Time are in the MQMD header:
<xsl:variable name="mqmdHeader" select="dp:parse(dp:request-header('MQMD'))"/> <xsl:variable name="putDate" select="normalize-space($mqmdHeader/MQMD/PutDate/text())"/> <xsl:variable name="putTime" select="normalize-space($mqmdHeader/MQMD/PutTime/text())"/>
SteveUpdated on 2014-03-25T03:01:57Z at 2014-03-25T03:01:57Z by iron-man