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 MQ

Post new topic  Reply to topic
 Datapower MQ « View previous topic :: View next topic » 
Author Message
ezechial
PostPosted: Mon Nov 26, 2007 9:12 am    Post subject: Datapower MQ Reply with quote

Newbie

Joined: 26 Nov 2007
Posts: 4

How to access on a style sheet MQ Services variables in Datapower XI50
Firmware Rev: XI50.3.6.0.25
_________________
mirage
datapower/mq
Back to top
View user's profile Send private message
ashoon
PostPosted: Mon Nov 26, 2007 9:35 am    Post subject: Re: Datapower MQ Reply with quote

Master

Joined: 26 Oct 2004
Posts: 235

check your functions for the dp:url-open... note however you can't do a simple get in the middle of processing... only a put or put/get

ezechial wrote:
How to access on a style sheet MQ Services variables in Datapower XI50
Firmware Rev: XI50.3.6.0.25

_________________
IBM Certified - SOA Solution Designer & WebSphere Datapower SOA Appliances
Back to top
View user's profile Send private message
ezechial
PostPosted: Mon Nov 26, 2007 3:39 pm    Post subject: Reply with quote

Newbie

Joined: 26 Nov 2007
Posts: 4

I am not using a function I am working on a multiple protocol gateway. So I do not know/understand what you are referring to.
_________________
mirage
datapower/mq
Back to top
View user's profile Send private message
ashoon
PostPosted: Mon Nov 26, 2007 6:06 pm    Post subject: Reply with quote

Master

Joined: 26 Oct 2004
Posts: 235

umm.... I'm guessing you are BRAND new to datapower and have NO training???

MPG can have an MQ frontside handler and back-end service and you can also make a call out to MQ during processing via a results or stylesheet... what do you want to do?

ezechial wrote:
I am not using a function I am working on a multiple protocol gateway. So I do not know/understand what you are referring to.

_________________
IBM Certified - SOA Solution Designer & WebSphere Datapower SOA Appliances
Back to top
View user's profile Send private message
ezechial
PostPosted: Tue Nov 27, 2007 6:41 am    Post subject: Reply with quote

Newbie

Joined: 26 Nov 2007
Posts: 4

Maybe I was not clear enough:
I am using a MQ frontside handler for MGP. I am trying to extract the information from the MQ mesage header. How do I access them as a variable (service or otherwise)? The docs mentions that they are service variable I can use but I do not know how to enable it.
Please do not just copy a phrase or sentence from the docs we all have.
_________________
mirage
datapower/mq
Back to top
View user's profile Send private message
ashoon
PostPosted: Tue Nov 27, 2007 7:19 am    Post subject: Reply with quote

Master

Joined: 26 Oct 2004
Posts: 235

yeah - you definitely are not clear on what you're doing... and since you have the docs you'd see the mq-specific variables in the web-gui guide... good luck

ezechial wrote:
Maybe I was not clear enough:
I am using a MQ frontside handler for MGP. I am trying to extract the information from the MQ mesage header. How do I access them as a variable (service or otherwise)? The docs mentions that they are service variable I can use but I do not know how to enable it.
Please do not just copy a phrase or sentence from the docs we all have.

_________________
IBM Certified - SOA Solution Designer & WebSphere Datapower SOA Appliances
Back to top
View user's profile Send private message
ezechial
PostPosted: Tue Nov 27, 2007 7:40 am    Post subject: Reply with quote

Newbie

Joined: 26 Nov 2007
Posts: 4

It is okay if you do not kow how to do it, somebody else may.

For those interestersted, a work around would be to set AAA policy and pulled in the header info that you need and a global variable would be set with that value and it can be used for your processing.

I still would like some one to let me know how to access the value as a service variable.
_________________
mirage
datapower/mq
Back to top
View user's profile Send private message
kotha
PostPosted: Wed Nov 28, 2007 6:14 am    Post subject: Reply with quote

Partisan

Joined: 12 Mar 2005
Posts: 333

If I understand correctly, Simply write a XSL stylesheet which retrieves the service variable. We do that to retrieve any variable (local/service/etc)
Create a policy and use the transform node which uses the stylesheet you developed.
For example, the following code retrieves the guid from the SOAP header and sets it to a variable msg-guid.

<xsl:variable name="guid">
<xsl:value-of select="/*[local-name()='Envelope']/*[local-name()='Header']/*[local-name()='sinfo']/@*[local-name()='guid']"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$guid">
<dp:set-variable name="'var://context/txn-info/msg-guid'" value="string($guid)"/>
</xsl:when>
</xsl:choose>
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 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.