synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dushan Sachinda Abeyruwan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SYNAPSE-924) Evaluating Xpath Expresions defined in Templates not worked when parameter to be loaded from property as expression to the argument "{{get-property('request')}}"
Date Mon, 18 Feb 2013 15:47:12 GMT

     [ https://issues.apache.org/jira/browse/SYNAPSE-924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dushan Sachinda Abeyruwan updated SYNAPSE-924:
----------------------------------------------

    Attachment: synapse_dynamic_xpath.txt
    
> Evaluating Xpath Expresions defined in Templates not worked when parameter to be loaded
from property as expression to the argument "{{get-property('request')}}"
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-924
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-924
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.1
>            Reporter: Dushan Sachinda Abeyruwan
>             Fix For: 2.1
>
>         Attachments: synapse_dynamic_xpath.txt
>
>
> RequestXpath value has to be retrieved from a property and fails to execute correctly
when used as below: 
> <call-template target="processEnrichXpathNew"> 
>                   <with-param name="crEndPoint" value="http://10.76.52.240:8281/services/AccountCreationPROXY"/>

>                   <with-param xmlns:ns2="http://org.apache.synapse/xsd" name="requestXpath"
value="{{get-property('request')}}"/> 
>                   <with-param xmlns:ns2="http://org.apache.synapse/xsd" name="responseXpath"
value="{{//ns2:PartyRec/ns2:PersonPartyInfo/ns2:PersonData/ns2:PersonName}}"/> 
>  </call-template> 
> this can be reproduced in Sample 751 if defines as follows 
> i.e 
>   <with-param xmlns:m0="http://services.samples" name="iter_expr" value="{{get-property('xpath')}}"/>
where the property will be evaluated and the synapse Expath expression will be provided to
the iterator element which evaluate the actual expression. 
> <proxy name="SplitAggregateProxy" 
>           transports="https http" 
>           startOnLoad="true" 
>           trace="disable"> 
>       <description/> 
>       <target> 
>          <inSequence> 
>             <property name="xpath" value="//m0:getQuote/m0:request"/> 
>             <call-template target="iter_func"> 
>                <with-param xmlns:m0="http://services.samples" 
>                            name="iter_expr" 
>                            value="{{get-property('xpath')}}"/> 
>                <with-param xmlns:m0="http://services.samples" 
>                            name="attach_path" 
>                            value="{{//m0:getQuote}}"/> 
>             </call-template> 
>          </inSequence> 
>          <outSequence> 
>             <call-template target="aggr_func"> 
>                <with-param xmlns:m0="http://services.samples" 
>                            name="aggr_expr" 
>                            value="{{//m0:getQuoteResponse}}"/> 
>             </call-template> 
>          </outSequence> 
>       </target> 
>    </proxy>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message