This scenario describes a two-component Job that uses a Web service to retrieve the country name information of a given country code.
Drop the following components from the Palette onto the design workspace: tSOAP and tLogRow.
Connect tSOAP to tLogRow using a Row > Main link.
Double-click tSOAP to open its Basic settings view and define the component properties.
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".
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.
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
?wsdlon 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"/>
From the SOAP Version list, select the version of the SOAP system being used. In this scenario, the version is SOAP 1.1.
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>"
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.