You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Sadeep Jayasumana (Created) (JIRA)" <ji...@apache.org> on 2011/12/07 10:52:40 UTC

[jira] [Created] (SYNAPSE-821) Payload-factory mediator for simple yet efficient message transformations

Payload-factory mediator for simple yet efficient message transformations
-------------------------------------------------------------------------

                 Key: SYNAPSE-821
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-821
             Project: Synapse
          Issue Type: New Feature
          Components: Core
            Reporter: Sadeep Jayasumana


 Payload-factory mediator creates a new SOAP payload for the message, replacing the existing one. printf() style formatting is used to configure the transformation performed by the mediator.
Each argument in the mediator configuration could be a static value or an XPath expression. When an expression is used, argument value is fetched at runtime by evaluating the provided XPath expression against the existing SOAP message/message context.

Example configuration:

<payloadFactory>
    <format>
        <m:CheckPriceRequest xmlns:m="http://foo.com">
            <m:Code>$1</m:Code>
            <m:User>$2</m:User>
        </m:CheckPriceRequest>
    </format>
    <args>
        <arg xmlns:m0="http://services.samples" expression="//m0:getQuote/m0:request/m0:symbol"/>
        <arg value="John Smith"/>
    </args>
</payloadFactory>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Resolved] (SYNAPSE-821) Payload-factory mediator for simple yet efficient message transformations

Posted by "Hiranya Jayathilaka (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka resolved SYNAPSE-821.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1

Both patches applied to trunk and branch. Thanks Sadeep for the contribution.
                
> Payload-factory mediator for simple yet efficient message transformations
> -------------------------------------------------------------------------
>
>                 Key: SYNAPSE-821
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-821
>             Project: Synapse
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Sadeep Jayasumana
>            Assignee: Hiranya Jayathilaka
>             Fix For: 2.1
>
>         Attachments: SYNAPSE-821.patch, SYNAPSE-821_part2.txt
>
>
>  Payload-factory mediator creates a new SOAP payload for the message, replacing the existing one. printf() style formatting is used to configure the transformation performed by the mediator.
> Each argument in the mediator configuration could be a static value or an XPath expression. When an expression is used, argument value is fetched at runtime by evaluating the provided XPath expression against the existing SOAP message/message context.
> Example configuration:
> <payloadFactory>
>     <format>
>         <m:CheckPriceRequest xmlns:m="http://foo.com">
>             <m:Code>$1</m:Code>
>             <m:User>$2</m:User>
>         </m:CheckPriceRequest>
>     </format>
>     <args>
>         <arg xmlns:m0="http://services.samples" expression="//m0:getQuote/m0:request/m0:symbol"/>
>         <arg value="John Smith"/>
>     </args>
> </payloadFactory>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Assigned] (SYNAPSE-821) Payload-factory mediator for simple yet efficient message transformations

Posted by "Hiranya Jayathilaka (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka reassigned SYNAPSE-821:
-------------------------------------------

    Assignee: Hiranya Jayathilaka  (was: Kasun Indrasiri)
    
> Payload-factory mediator for simple yet efficient message transformations
> -------------------------------------------------------------------------
>
>                 Key: SYNAPSE-821
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-821
>             Project: Synapse
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Sadeep Jayasumana
>            Assignee: Hiranya Jayathilaka
>             Fix For: 2.1
>
>         Attachments: SYNAPSE-821.patch, SYNAPSE-821_part2.txt
>
>
>  Payload-factory mediator creates a new SOAP payload for the message, replacing the existing one. printf() style formatting is used to configure the transformation performed by the mediator.
> Each argument in the mediator configuration could be a static value or an XPath expression. When an expression is used, argument value is fetched at runtime by evaluating the provided XPath expression against the existing SOAP message/message context.
> Example configuration:
> <payloadFactory>
>     <format>
>         <m:CheckPriceRequest xmlns:m="http://foo.com">
>             <m:Code>$1</m:Code>
>             <m:User>$2</m:User>
>         </m:CheckPriceRequest>
>     </format>
>     <args>
>         <arg xmlns:m0="http://services.samples" expression="//m0:getQuote/m0:request/m0:symbol"/>
>         <arg value="John Smith"/>
>     </args>
> </payloadFactory>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Assigned] (SYNAPSE-821) Payload-factory mediator for simple yet efficient message transformations

Posted by "Kasun Indrasiri (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kasun Indrasiri reassigned SYNAPSE-821:
---------------------------------------

    Assignee: Kasun Indrasiri  (was: Hiranya Jayathilaka)
    
> Payload-factory mediator for simple yet efficient message transformations
> -------------------------------------------------------------------------
>
>                 Key: SYNAPSE-821
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-821
>             Project: Synapse
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Sadeep Jayasumana
>            Assignee: Kasun Indrasiri
>         Attachments: SYNAPSE-821.patch, SYNAPSE-821_part2.txt
>
>
>  Payload-factory mediator creates a new SOAP payload for the message, replacing the existing one. printf() style formatting is used to configure the transformation performed by the mediator.
> Each argument in the mediator configuration could be a static value or an XPath expression. When an expression is used, argument value is fetched at runtime by evaluating the provided XPath expression against the existing SOAP message/message context.
> Example configuration:
> <payloadFactory>
>     <format>
>         <m:CheckPriceRequest xmlns:m="http://foo.com">
>             <m:Code>$1</m:Code>
>             <m:User>$2</m:User>
>         </m:CheckPriceRequest>
>     </format>
>     <args>
>         <arg xmlns:m0="http://services.samples" expression="//m0:getQuote/m0:request/m0:symbol"/>
>         <arg value="John Smith"/>
>     </args>
> </payloadFactory>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Updated] (SYNAPSE-821) Payload-factory mediator for simple yet efficient message transformations

Posted by "Sadeep Jayasumana (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sadeep Jayasumana updated SYNAPSE-821:
--------------------------------------

    Attachment: SYNAPSE-821.patch

Attaching a patch against the Synapse trunk. Please review and commit.
                
> Payload-factory mediator for simple yet efficient message transformations
> -------------------------------------------------------------------------
>
>                 Key: SYNAPSE-821
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-821
>             Project: Synapse
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Sadeep Jayasumana
>         Attachments: SYNAPSE-821.patch
>
>
>  Payload-factory mediator creates a new SOAP payload for the message, replacing the existing one. printf() style formatting is used to configure the transformation performed by the mediator.
> Each argument in the mediator configuration could be a static value or an XPath expression. When an expression is used, argument value is fetched at runtime by evaluating the provided XPath expression against the existing SOAP message/message context.
> Example configuration:
> <payloadFactory>
>     <format>
>         <m:CheckPriceRequest xmlns:m="http://foo.com">
>             <m:Code>$1</m:Code>
>             <m:User>$2</m:User>
>         </m:CheckPriceRequest>
>     </format>
>     <args>
>         <arg xmlns:m0="http://services.samples" expression="//m0:getQuote/m0:request/m0:symbol"/>
>         <arg value="John Smith"/>
>     </args>
> </payloadFactory>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Commented] (SYNAPSE-821) Payload-factory mediator for simple yet efficient message transformations

Posted by "Hiranya Jayathilaka (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164261#comment-13164261 ] 

Hiranya Jayathilaka commented on SYNAPSE-821:
---------------------------------------------

Thanks Sadeep for the contribution. I've applied the patch to the trunk. Can you please also provide a sample?
                
> Payload-factory mediator for simple yet efficient message transformations
> -------------------------------------------------------------------------
>
>                 Key: SYNAPSE-821
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-821
>             Project: Synapse
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Sadeep Jayasumana
>            Assignee: Hiranya Jayathilaka
>         Attachments: SYNAPSE-821.patch
>
>
>  Payload-factory mediator creates a new SOAP payload for the message, replacing the existing one. printf() style formatting is used to configure the transformation performed by the mediator.
> Each argument in the mediator configuration could be a static value or an XPath expression. When an expression is used, argument value is fetched at runtime by evaluating the provided XPath expression against the existing SOAP message/message context.
> Example configuration:
> <payloadFactory>
>     <format>
>         <m:CheckPriceRequest xmlns:m="http://foo.com">
>             <m:Code>$1</m:Code>
>             <m:User>$2</m:User>
>         </m:CheckPriceRequest>
>     </format>
>     <args>
>         <arg xmlns:m0="http://services.samples" expression="//m0:getQuote/m0:request/m0:symbol"/>
>         <arg value="John Smith"/>
>     </args>
> </payloadFactory>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Assigned] (SYNAPSE-821) Payload-factory mediator for simple yet efficient message transformations

Posted by "Hiranya Jayathilaka (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka reassigned SYNAPSE-821:
-------------------------------------------

    Assignee: Hiranya Jayathilaka
    
> Payload-factory mediator for simple yet efficient message transformations
> -------------------------------------------------------------------------
>
>                 Key: SYNAPSE-821
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-821
>             Project: Synapse
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Sadeep Jayasumana
>            Assignee: Hiranya Jayathilaka
>         Attachments: SYNAPSE-821.patch
>
>
>  Payload-factory mediator creates a new SOAP payload for the message, replacing the existing one. printf() style formatting is used to configure the transformation performed by the mediator.
> Each argument in the mediator configuration could be a static value or an XPath expression. When an expression is used, argument value is fetched at runtime by evaluating the provided XPath expression against the existing SOAP message/message context.
> Example configuration:
> <payloadFactory>
>     <format>
>         <m:CheckPriceRequest xmlns:m="http://foo.com">
>             <m:Code>$1</m:Code>
>             <m:User>$2</m:User>
>         </m:CheckPriceRequest>
>     </format>
>     <args>
>         <arg xmlns:m0="http://services.samples" expression="//m0:getQuote/m0:request/m0:symbol"/>
>         <arg value="John Smith"/>
>     </args>
> </payloadFactory>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Updated] (SYNAPSE-821) Payload-factory mediator for simple yet efficient message transformations

Posted by "Sadeep Jayasumana (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sadeep Jayasumana updated SYNAPSE-821:
--------------------------------------

    Attachment: SYNAPSE-821_part2.txt

Attaching the sample/documentation update patch. Please review and commit.
                
> Payload-factory mediator for simple yet efficient message transformations
> -------------------------------------------------------------------------
>
>                 Key: SYNAPSE-821
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-821
>             Project: Synapse
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Sadeep Jayasumana
>            Assignee: Hiranya Jayathilaka
>         Attachments: SYNAPSE-821.patch, SYNAPSE-821_part2.txt
>
>
>  Payload-factory mediator creates a new SOAP payload for the message, replacing the existing one. printf() style formatting is used to configure the transformation performed by the mediator.
> Each argument in the mediator configuration could be a static value or an XPath expression. When an expression is used, argument value is fetched at runtime by evaluating the provided XPath expression against the existing SOAP message/message context.
> Example configuration:
> <payloadFactory>
>     <format>
>         <m:CheckPriceRequest xmlns:m="http://foo.com">
>             <m:Code>$1</m:Code>
>             <m:User>$2</m:User>
>         </m:CheckPriceRequest>
>     </format>
>     <args>
>         <arg xmlns:m0="http://services.samples" expression="//m0:getQuote/m0:request/m0:symbol"/>
>         <arg value="John Smith"/>
>     </args>
> </payloadFactory>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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