Skip to main content Skip to complementary content

Configuring the components

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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!