Show TOC

Adding XMLAnonymizerBean in the Module ProcessorLocate this document in the navigation structure

Use

You use this module to anonymize XML elements and attributes by removing namespaces or namespace prefixes from the XML document of the main payload.

You can define a particular namespace prefix for each namespace. You can also change the encoding attribute of the XML declaration.

You can use the module in adapters that can be extended in the module processor.

Procedure

Add the Module in the Processing Sequence

  1. Insert the module before the adapter module.

    If the adapter comprises multiple modules, for information about the position of the module, see: Extending the Module Chain in the Module Processor

    • Enter the module name
      AF_Modules/
      XMLAnonymizerBean .
    • Select the Module Type
      Local Enterprise Bean
      .

      The system proposes a module key.

Add Parameters in the Module Configuration

  1. Under Parameter Name, enter anonymizer.acceptNamespaces.
  2. Under Parameter Value, enter a list of namespaces and their prefixes that are to be kept in the XML document as follows: namespace1 n1 namespace2 n2

    To enter a namespace without a prefix, enter '' (two single quotation marks).

    Any namespaces you do not specify are removed from the XML document.

  3. Optional: Under Parameter Name, enter anonymizer.quote.
  4. Under Parameter Value, specify the character to be used to enclose the attribute values.

    The default value is '.

  5. To use a code page other than UTF-8, enter anonymizer.encoding under Parameter Name.
  6. Under Parameter Value, specify the encoding.

    For example, enter ISO-8859-1 .

Example

The anonymizer.acceptNamespaces parameter has the following value:

urn:sap-com:document:sap:rfc:functions rfc urn:sap-com:document:sap:soap:functions:mc-style rfc

  • Payload before using the XMLAnonymizerBean:

    <Z_PAYMITEM_GET_LIST

    xmlns="urn:sap-com:document:sap:rfc:functions"

    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"

    xmlns:xsd="http://www.w3.org/2001/XMLSchema"

    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <I_ACCOUNTIDENT xmlns="">

    <ACCOUNT_NUMBER>0080000094</ACCOUNT_NUMBER>

    <BANK_COUNTRY>DE</BANK_COUNTRY>

    <BANK_COUNTRY_ISO>DE</BANK_COUNTRY_ISO>

    </I_ACCOUNTIDENT>

    </Z_PAYMITEM_GET_LIST>

  • Payload after using the XMLAnonymizerBean:

    <?xml version='1.0' encoding='utf-8'?>

    <rfc:Z_PAYMITEM_GET_LIST

    xmlns:rfc='urn:sap-com:document:sap:rfc:functions'>

    <I_ACCOUNTIDENT>

    <ACCOUNT_NUMBER>0080000094</ACCOUNT_NUMBER>

    <BANK_COUNTRY>DE</BANK_COUNTRY>

    <BANK_COUNTRY_ISO>DE</BANK_COUNTRY_ISO>

    </I_ACCOUNTIDENT>

    </rfc:Z_PAYMITEM_GET_LIST>