Author |
Message
|
ezechial |
Posted: Mon Nov 26, 2007 9:12 am Post subject: Datapower MQ |
|
|
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 |
|
 |
ashoon |
Posted: Mon Nov 26, 2007 9:35 am Post subject: Re: Datapower MQ |
|
|
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 |
|
 |
ezechial |
Posted: Mon Nov 26, 2007 3:39 pm Post subject: |
|
|
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 |
|
 |
ashoon |
Posted: Mon Nov 26, 2007 6:06 pm Post subject: |
|
|
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 |
|
 |
ezechial |
Posted: Tue Nov 27, 2007 6:41 am Post subject: |
|
|
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 |
|
 |
ashoon |
Posted: Tue Nov 27, 2007 7:19 am Post subject: |
|
|
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 |
|
 |
ezechial |
Posted: Tue Nov 27, 2007 7:40 am Post subject: |
|
|
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 |
|
 |
kotha |
Posted: Wed Nov 28, 2007 6:14 am Post subject: |
|
|
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 |
|
 |
|