synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiranya Jayathilaka (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNAPSE-821) Payload-factory mediator for simple yet efficient message transformations
Date Wed, 07 Dec 2011 10:04:40 GMT

    [ 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


Mime
View raw message