synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kasun Indrasiri <kasun...@gmail.com>
Subject Mediator for replacing namespaces of a given message
Date Mon, 10 Jan 2011 10:16:00 GMT
Hi all,

It is often required to change the namespace of a message that passes
through synapse. There is no straightforward way to do so with synapse and
currently we have the expensive alternatives such as xslt. So, how about
adding a new mediator with this basic feature.?

Here is the syntax of the nsreplace mediator.

<nsreplace name="nsr_1">
    <ns source="www.foo.com" target="www.bar.com" targetprfix="sdf"/>*+*
</nsreplace>

WDYT?

Thanks.
-- 
Kasun Indrasiri
Senior Software Engineer,
WSO2 Inc. - "Lean . Enterprise . Middleware" - http://www.wso2.com/
Blog : http://kasunpanorama.blogspot.com/

Mime
View raw message