Start of Content Area

Function documentation PayloadSwapBean  Locate the document in its SAP Library structure

Use

You use the PayloadSwapBean module to replace the application payload of the XI message that contains the business data with another payload that is appended to the XI message as an attachment.

Integration

You can use the module in adapters that forward attachments.

Example

For example, you can use the module in the mail adapter for mails with attachments.

Prerequisites

You have configured a communication channel, for example of type Mail, and are on the Module tab page in change mode.

Activities

Entries in the Processing Sequence

      Enter the module name AF_Modules/PayloadSwapBean before the module name of the adapter. For information about where to insert the module, see: Extending the Module Chain in the Module Processor.

      The module type is Local Enterprise Bean.

      The module key is proposed.

Entries in the Module Configuration

To ensure that the attachment that is to replace the application payload can be found, you must now specify a parameter from the MIME header.

      swap.keyName

You can enter a payload attribute such as payload-name or payload-description, or an attribute from the MIME header such as content-type, content-description, and so on.

      swap.keyValue

Enter the value that the attribute is to have.

The MIME headers of the payloads are searched in order and the system takes the first payload that meets the criteria. This payload is swapped with the application payload.

 

 

 

 

 

 

End of Content Area