ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere DataPower » Datapower Integration with MB through MQ

Post new topic  Reply to topic
 Datapower Integration with MB through MQ « View previous topic :: View next topic » 
Author Message
agurrala
PostPosted: Wed Jul 23, 2014 7:29 am    Post subject: Datapower Integration with MB through MQ Reply with quote

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)*'

Response Rule :
Response.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="/">
<xsl:message>Success</xsl:message>
</xsl:template>
</xsl:stylesheet>



I have also tried setting these header values at DP Service level with
Direction :-
Back
Header Tag :- <MQMD><ReplyToQ>BACK.REPLY</ReplyToQ></MQMD>

Any Help is appreciated.
Back to top
View user's profile Send private message
hcinko5
PostPosted: Thu Aug 28, 2014 4:08 pm    Post subject: Reply with quote

Novice

Joined: 12 Apr 2010
Posts: 21

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere DataPower » Datapower Integration with MB through MQ
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.