Topic
1 reply Latest Post - ‏2013-04-29T09:38:14Z by VMNanduri
smashyrahul
smashyrahul
295 Posts
ACCEPTED ANSWER

Pinned topic Issue in setting up routing url: URGENT

‏2013-04-27T12:31:27Z |

Hi experts,

 

I need an urgent help on below issue.

 

I am using below pasted here.

 

I am expecting the routing url to set to  the value https://111.111.111.111:8943/RI-service/services/ann/anngetquotedoc/469019/LP00001058/1

 

But somehow datpower is not able to parse the value of the routing variable getting set by this xslt and giving below error.

 

mpgw (AnnuitiesDocRetrievalServiceMPG): cannot parse routing-url 'https://111.111.111.111:8943/RI-service/services/ann/anngetquotedoc/469019/LP00001058/1'

 

Could you please help me in finding the reason why datapower is behaving like this???

 

I believe there is an issue with the way I am setting the value of "modified_url" variable. and somehow Datapower is not able to parse the value of variable.

 

 

 

 

<xsl:stylesheetversion="1.0"extension-element-prefixes="dp"exclude-result-prefixes="dp date"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:dp="http://www.datapower.com/extensions"xmlns:fn="http://www.w3.org/2005/xpath-functions"xmlns:date="http://exslt.org/dates-and-times">

            <xsl:outputmethod="xml"/>

 

 

            <xsl:templatematch="/">

                        <xsl:variablename="url">

  <xsl:value-ofselect="dp:variable('var://service/URI')" />

  </xsl:variable>

 

                        <xsl:variablename="fsa_num">

                                    <xsl:value-ofselect="

               

                    substring-before(

                        substring-after($url, 'anngetquotedoc/'),

                        '/'

                    )

                   

                

                "/>

               

                </xsl:variable>

              

               

               <xsl:variablename="fsa_num1">

                                    <xsl:value-ofselect="concat($fsa_num,'/')"/>

                        </xsl:variable>

                       

                        <xsl:variablename="ref_num">

                                    <xsl:value-ofselect="

               

                    substring-before(

                        substring-after($url, $fsa_num1),

                        '/'

                    )

                    

                    

                

                "/>

                </xsl:variable>

               

                 <xsl:variablename="ref_num1">

                                    <xsl:value-ofselect="concat($ref_num,'/')"/>

                        </xsl:variable>

               

              

                 

                 

                 <xsl:variablename="quote_num">

                                    <xsl:value-ofselect="

               

                    

                        substring-after($url, $ref_num1)

                       

                    

                  

                "/>

                </xsl:variable>

               

                   

                

                <xsl:variablename="modified_url">

 

                 https://111.111.111.111:8943/RI-service/services/ann/anngetquotedoc/<xsl:value-ofselect="$fsa_num"/>/<xsl:value-ofselect="$ref_num"/>/<xsl:value-ofselect="$quote_num"/>

 

               </xsl:variable>

              

               

            

                          <dp:set-variablename="'var://service/routing-url'"value="$modified_url" />                   

                          

                       

            </xsl:template>

</xsl:stylesheet>

                       

                       

                       

                       

 

 

Updated on 2013-04-27T22:46:39Z at 2013-04-27T22:46:39Z by smashyrahul