Posted: Wed Jul 23, 2014 7:29 am Post subject: Datapower Integration with MB through MQ
Newbie
Joined: 28 Aug 2013 Posts: 4
Hi All,
I'm stuck with a small issue in Datapower.
I followed the below article
http://www.ibm.com/developerworks/websphere/library/techarticles/0703_crocker/0703_crocker.html
The only change from the above article is that we have to set the MQMD Details like "ReplyToQmgr" & "ReplyToQ" fields and store it in a context variables(Datapower XSLT) in the Request side.
From the Response side we will be using this "ReplyToQ" value so it will be determining the backend queue name.
I have used these xsl files in my DP Service
Request Rule :
Request.xsl
Code:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:dp="http://www.datapower.com/extensions"
extension-element-prefixes="dp"
exclude-result-prefixes="dp">
<xsl:output method="xml"/>
<xsl:template match="/">
<!-- get the MQMD header from the request message -->
<xsl:variable name="entries" select="dp:request-header('MQMD')"/>
<!-- parse into a usable nodeset -->
<xsl:variable name="header" select="dp:parse($entries)"/>
<!-- store the desired values in a variable available for later -->
<xsl:variable name="BACK.REPLY" select="$header//ReplyToQ"/>
<xsl:variable name="IB9QMGR" select="$header//ReplyToQMgr"/>
<xsl:variable name="MsgId" select="$header//MsgId"/>
<dp:set-variable name="'var://context/MYMQMD/ReplyToQ'" value="$BACK.REPLY"/>
<dp:set-variable name="'var://context/MYMQMD/ReplyToQMgr'" value="$IB9QMGR"/>
<dp:set-variable name="'var://context/MYMQMD/MsgId'" value="$MsgId"/>
<xsl:message>
<xsl:value-of select="MQMD with Original Req"/>
</xsl:message>
<Message>
<Text>Simple XSL Transformation with Header Part..!</Text>
<OrigionalMessage>
<xsl:value-of select="."/>
</OrigionalMessage>
</Message>
</xsl:template>
</xsl:stylesheet>
Issue:-Am facing problem like dp:parse
var://context/INPUT/_extension/error string 'dp:parse() error: Incomplete markup or missing document element at offset 0 of *dp:parse(local:///Y.xsl)*'
Have you read carefully your error message? the message says at the end Incomplete markup or missing document element at offset 0 of *dp:parse(local:///Y.xsl)*' the error points that the sylesheet Y.xsl (refrenced somewhere) has errors or maybe it's empty.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum