You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Kasun Indrasiri (JIRA)" <ji...@apache.org> on 2011/01/10 06:07:46 UTC
[jira] Created: (SYNAPSE-716) Supporting Message Copying and
Content Enriching with Enrich Mediator
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
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-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org
[jira] Commented: (SYNAPSE-716) Supporting Message Copying and
Content Enriching with Enrich Mediator
Posted by "Supun Kamburugamuva (JIRA)" <ji...@apache.org>.
[ 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-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org
[jira] Updated: (SYNAPSE-716) Supporting Message Copying and
Content Enriching with Enrich Mediator
Posted by "Kasun Indrasiri (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kasun Indrasiri updated SYNAPSE-716:
------------------------------------
Attachment: enrich-mediator-j10.patch
> 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-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org
[jira] Commented: (SYNAPSE-716) Supporting Message Copying and
Content Enriching with Enrich Mediator
Posted by "Kasun Indrasiri (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12983624#action_12983624 ]
Kasun Indrasiri commented on SYNAPSE-716:
-----------------------------------------
Hi Supun,
One limitation with the patch provided is that it doesn't support inline non-xml (text) content.
eg:
<enrich>
<source type="inline">MSFT</source>
<target xmlns:m0="http://services.samples"
xpath="//m0:getQuote/m0:request/m0:symbol/text()"/>
</enrich>
I'm attaching the patch with the new features.
thanks,
Kasun
> 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-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org
[jira] Resolved: (SYNAPSE-716) Supporting Message Copying and
Content Enriching with Enrich Mediator
Posted by "Supun Kamburugamuva (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Supun Kamburugamuva resolved SYNAPSE-716.
-----------------------------------------
Resolution: Fixed
Applied the patch. Thanks Kasun for the contributions.
> 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-inlinetext_J19.patch, 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-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org
[jira] Updated: (SYNAPSE-716) Supporting Message Copying and
Content Enriching with Enrich Mediator
Posted by "Kasun Indrasiri (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kasun Indrasiri updated SYNAPSE-716:
------------------------------------
Attachment: enrich-inlinetext_J19.patch
> 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-inlinetext_J19.patch, 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-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org