Skip to main content Skip to complementary content

Procedure

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.
    Information noteNote:

    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.

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!