Configuring the components - 7.3

Exchange (Mediation)

Version
7.3
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Exchange components (Mediation)
Data Quality and Preparation > Third-party systems > Exchange components (Mediation)
Design and Development > Third-party systems > Exchange components (Mediation)
Last publication date
2023-06-12

Procedure

  1. Double-click cSOAP to open its Basic settings view in the Component tab.
  2. In the Address field, leave the default setting unchanged.
  3. In the Type list, select wsdlURL.
  4. In the WSDL File field, enter the URL of the wsdl file. You can also click the [...] button to browse for it.
  5. Click [...] next to Service Configuration to open the service configuration wizard. The WSDL field has been filled in with the selected WSDL file. Click to show the available port in the Port Name box. Select the airportSoap port and click Finish to close the wizard. The Service Name and Port Name fields in the Basic settings view are filled in automatically.
  6. In the Dataformat list, select PAYLOAD.
  7. Double-click cExchangePattern to open its Basic settings view in the Component tab.
  8. In the Exchange Patterns list, select InOut to enable the request/reply message exchange mode.
  9. Double-click cProcessor to open its Basic settings view in the Component tab.
  10. In the Code box, enter the code below.
    StringBuilder sb = new StringBuilder();
    sb.append("<tns:getAirportInformationByISOCountryCodeResponse xmlns:tns=\"http://airportsoap.sopera.de\">");
    sb.append("<tns:getAirportInformationByISOCountryCodeResult>This is a response</tns:getAirportInformationByISOCountryCodeResult>");
    sb.append("</tns:getAirportInformationByISOCountryCodeResponse>");
    exchange.getOut().setBody(sb.toString());
    As shown above, a string is built here and is used as a reply message of the route. It is in line with the message definition of the above wsdl file.
  11. Press Ctrl+S to save your Route.