synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SYNAPSE-235) Allow XPath expressions to be specified relative to envelope or body via an attribute
Date Wed, 12 Mar 2008 21:44:46 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578027#action_12578027
] 

Andreas Veithen commented on SYNAPSE-235:
-----------------------------------------

Ruwan,

I reviewed your modifications and I would like to propose a cleaner VariableContext implementation.
I just checked it into SVN as SynapseVariableContext. The idea would be to replace the code
in SynapseXPath#evaluate by:

setVariableContext(new SynapseVariableContext(env))
return super.evaluate(env);

My implementation avoids the "this.toString().indexOf("$body") != -1" tests and could also
be a starting point for the ideas I suggested in my previous comment.

Note that SynapseVariableContext is not yet tested. Could you give it a try?

BTW: can somebody point me to a code formatter profile for Eclipse appropriate for Apache
Synapse?

> Allow XPath expressions to be specified relative to envelope or body via an attribute
> -------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-235
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-235
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: Asankha C. Perera
>            Assignee: Ruwan Linton
>             Fix For: 1.2
>
>
> This would make XPath expressions simpler without consideration for SOAP 1.1 or 1.2 or
REST etc
> Default could be envelope (i.e. what we have now - for backward compatibility), and an
optional attribute could specify if it should be relative to the body

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message