Topic
  • 4 replies
  • Latest Post - ‏2012-10-04T12:31:12Z by RubenRandall
RubenRandall
RubenRandall
89 Posts

Pinned topic Re:var://service/skip-backside

‏2012-10-03T19:53:55Z |
Hi,

I have requirement of using ' var://service/skip-backside ' to skip backside processing, can any one explain me with the help of a small snippet of how does this work
Thank you
Updated on 2012-10-04T12:31:12Z at 2012-10-04T12:31:12Z by RubenRandall
  • gwing
    gwing
    10 Posts

    Re:var://service/skip-backside

    ‏2012-10-03T21:28:38Z  
    This will allow your service to act like a loopback XML firewall. Put it in your service policy.

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:dp="http://www.datapower.com/extensions"
    extension-element-prefixes="dp" exclude-result-prefixes="dp">

    <!-- Setting skip-backside allows mpgw policy to act as a loopback for testing -->

    <xsl:template match="/">
    <xsl:copy-of select="."/>
    <dp:set-variable name="'var://service/mpgw/skip-backside'" value="1"/>
    </xsl:template>
    </xsl:stylesheet>
  • HermannSW
    HermannSW
    5452 Posts

    Re:var://service/skip-backside

    ‏2012-10-04T10:44:46Z  
    • gwing
    • ‏2012-10-03T21:28:38Z
    This will allow your service to act like a loopback XML firewall. Put it in your service policy.

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:dp="http://www.datapower.com/extensions"
    extension-element-prefixes="dp" exclude-result-prefixes="dp">

    <!-- Setting skip-backside allows mpgw policy to act as a loopback for testing -->

    <xsl:template match="/">
    <xsl:copy-of select="."/>
    <dp:set-variable name="'var://service/mpgw/skip-backside'" value="1"/>
    </xsl:template>
    </xsl:stylesheet>
    Alternatively it can be done in Set Variable Action, which is preferable in flows where no Transform Actions are used.

     
    Hermann<myXsltBlog/> <myXsltTweets/>
  • RubenRandall
    RubenRandall
    89 Posts

    Re:var://service/skip-backside

    ‏2012-10-04T12:30:11Z  
    • HermannSW
    • ‏2012-10-04T10:44:46Z
    Alternatively it can be done in Set Variable Action, which is preferable in flows where no Transform Actions are used.

     
    Hermann<myXsltBlog/> <myXsltTweets/>
    Thanks Hermann, I got it!!!
  • RubenRandall
    RubenRandall
    89 Posts

    Re:var://service/skip-backside

    ‏2012-10-04T12:31:12Z  
    • gwing
    • ‏2012-10-03T21:28:38Z
    This will allow your service to act like a loopback XML firewall. Put it in your service policy.

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:dp="http://www.datapower.com/extensions"
    extension-element-prefixes="dp" exclude-result-prefixes="dp">

    <!-- Setting skip-backside allows mpgw policy to act as a loopback for testing -->

    <xsl:template match="/">
    <xsl:copy-of select="."/>
    <dp:set-variable name="'var://service/mpgw/skip-backside'" value="1"/>
    </xsl:template>
    </xsl:stylesheet>
    Thanks, gwing this stylesheet worked as well!!!!!