Configuring the components - 6.4

ConvertBody - Mediation

author
Talend Documentation Team
EnrichVersion
6.4
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Processing components (Mediation) > ConvertBody components (Mediation)
Data Quality and Preparation > Third-party systems > Processing components (Mediation) > ConvertBody components (Mediation)
Design and Development > Third-party systems > Processing components (Mediation) > ConvertBody components (Mediation)
EnrichPlatform
Talend Studio

Procedure

  1. Double-click the cFile component to open its Basic settings view in the Component tab.
  2. In the Path field, enter or browse to the path to the source XML file.
    If the source file folder contains more than one file, enter the name of the XML file of interest in the FileName field, and leave the other parameters as they are.
  3. Double-click the cConvertBodyTo component to open its Basic settings view in the Component tab.
  4. In the Target Class Name field, enter your target class name, org.w3c.dom.Document.class in this scenario.
  5. Double-click the cBeanRegister component to open its Basic settings view in the Component tab.
  6. In the Id field, enter "bean".
    Select the Simple option and in the Class Name field, enter the name of the bean to be invoked, beans.PrintConvertToBean in this scenario.
  7. Double-click the cBean component to open its Basic settings view in the Component tab.
  8. Select Reference and in the Id field, enter "bean" to call the bean that is registered by the cBeanRegister.
  9. Press Ctrl+S to save your Route.