Adding RemovePayloadValueBean in the Module Processor

Prerequisites

You have configured a communication channel and are on the Module tab page in change mode.

Context

Use RemovePayloadValueBean to remove some nodes from the message. You can use this bean in combination with GetPayloadValueBean and PutPayloadValueBean. First you can read some nodes into a module context then you can remove these nodes from the message before sending the message out by an adapter's module. Then you can enrich the response message with previously stored nodes.

Procedure

  1. Enter the module name AF_Modules/RemovePayloadValueBean .
  2. The Module Type is Local Enterprise Bean.
  3. The system proposes a Module Key.
  4. Under Parameter Name, enter remove:[XPath] . Use this parameter to specify XPath which points to a node you would like to remove from the payload. You can define multiple remove parameters with different XPath names (i.e. remove:/a/b, remove:/a/c etc). You can combine configuration of GetPayloadValueBean, PutPayloadValueBean and RemovePayloadValueBean under the same module key.
  5. Under Parameter Name, enter xmlns . Use this parameter to define all xml namespaces used in your XPath expressions.