Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-821

Payload-factory mediator for simple yet efficient message transformations

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • Core
    • None

    Description

      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>

      Attachments

        1. SYNAPSE-821.patch
          16 kB
          Sadeep Jayasumana
        2. SYNAPSE-821_part2.txt
          10 kB
          Sadeep Jayasumana

        Activity

          People

            hiranya Hiranya Kasub Jayathilaka
            sadeep Sadeep Jayasumana
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: