Procedure - 6.4

SOAP

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

Procedure

  1. Drop the following components from the Palette onto the design workspace: tSOAP and tLogRow.
  2. Connect tSOAP to tLogRow using a Row > Main link.
  3. Double-click tSOAP to open its Basic settings view and define the component properties.
  4. In ENDPOINT field, type in or copy-paste the URL address of the Web service to be used between the quotation marks: "http://www.webservicex.net/country.asmx".
  5. In the SOAP Action field, type in or copy-paste the URL address of the SOAPAction HTTP header field that indicates that you want to retrieve the country name information: http://www.webserviceX.NET/GetCountryByCountryCode.
    Note:

    You can see this address by looking at the WSDL for the Web service you are calling. For the Web service of this example, in a web browser, append ?wsdl on the end of the URL of the Web service used in the ENDPOINT field, open the corresponding web page, and then see the SOAPAction defined under the operation node:

    <wsdl:operation name="GetCountryByCountryCode">
    <soap:operation style="document"  soapAction="http://www.webserviceX.NET/GetCountryByCountryCode"/>
  6. From the SOAP Version list, select the version of the SOAP system being used. In this scenario, the version is SOAP 1.1.
  7. In the SOAP message field, enter the XML-format message used to retrieve the country name information from the invoked Web service. In this example, IS is used as the country code, so the message is:
    "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:web=\"http://www.webserviceX.NET\">
       <soapenv:Header/>
       <soapenv:Body>
          <web:GetCountryByCountryCode>
             <!--Optional:-->
             <web:CountryCode>IS</web:CountryCode>
          </web:GetCountryByCountryCode>
       </soapenv:Body>
    </soapenv:Envelope>"
  8. Save your Job and press F6 to execute it.
    The country name information of the given country code IS is returned and displayed on the console of the Run view.