[ https://issues.apache.org/jira/browse/SYNAPSE-716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12983002#action_12983002 ]
Supun Kamburugamuva commented on SYNAPSE-716: --------------------------------------------- Kasun, Applied the patch. Thank you for the contribution. If you can provide a sample and documentation that will be great. Thans, Supun.. > Supporting Message Copying and Content Enriching with Enrich Mediator > --------------------------------------------------------------------- > > Key: SYNAPSE-716 > URL: https://issues.apache.org/jira/browse/SYNAPSE-716 > Project: Synapse > Issue Type: New Feature > Components: Core > Reporter: Kasun Indrasiri > Attachments: enrich-mediator-j10.patch > > > It is often required to copy/replace message content from/with a specified > source such as a inline xml, localentry or a property. Also we need to store > a given message to a property or create a custom message from a given source. > Enrich Mediator can process a message based on a given source configuration > and then perform the specified action on the message by using the target > configuration. It basically gets an OMElement using the configuration > specified in the source and then modify the message by putting it on the > current message using the configuration in the target. > Syntax: > <enrich> > <source [clone=true|false] [type=custom|envelope|body|property|inline] > xpath="" property="" /> > <target [action=replace|child|sibiling] > [type=custom|envelope|body|property|inline] xpath="" property="" /> > </enrich> > Enrich Mediator that is included in this patch facilitates these requirements. > Use Cases > --------------- > 1. Copy Message Content to a Property > - Portion of a message (using xpath) to property > - SOAP Body to Property > - SOAP Envelope to Property > - SOAP Headers to Property > - Inline XML to property > - Resource content(local entries) to property > 2. Enrich a message from a given source > - Property to a portion of the Message Body (using xpath) > - Property to SOAP Body > - Property to Envelope > - Property to SOAP Header > 3. Message to Message (self enriching) > - Content of message can be move/copy with in the same message. -- 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-unsubscr...@synapse.apache.org For additional commands, e-mail: dev-h...@synapse.apache.org