tWebServiceInput
Invokes a Method through a Web service.
This component calls the defined method from the
invoked Web service, and returns the class as defined, based on the given parameters.
tWebServiceInput Standard properties
These properties are used to configure tWebServiceInput running in the Standard Job framework.
The Standard
tWebServiceInput component belongs to the Internet family.
The component in this framework is available in all Talend
products.
Basic settings
Property type |
Either Built-in or Repository. |
 |
Built-in: No property data stored |
 |
Repository: Select the Repository |
|
Click this icon to open a WSDL schema wizard and store your WSDL For more information about setting up and storing database |
Schema and Edit |
A schema is a row description, it defines the number of fields to Click Edit
|
 |
Built-in: You create the schema |
 |
Repository: You have already |
WSDL |
Description of Web service bindings and configuration. |
Need authentication / Username and |
Select this check box and: -enter a username and a password in the corresponding fields if -select the Windows To enter the password, click the […] button next to the |
Use http proxy |
Select this check box if you are using a proxy server and fill in |
Trust server with SSL |
Select this check box to validate the server certificate to the
TrustStore file: enter the path
TrustStore password: enter the |
Time out (second) |
Set a value in seconds for Web service connection time out. |
Method Name |
Enter the exact name of the Method to be invoked. The Method name MUST match the corresponding method described in |
Parameters |
Enter the parameters expected and the sought values to be |
Advanced Use |
Select this check box to display the fields dedicated for the
WSDL2java: click the three-dot
Code: replace the generated model
Match Brackets: select the number |
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at a |
Global Variables
Global Variables |
ERROR_MESSAGE: the error message generated by the
NB_LINE: the number of rows processed. This is an After A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see |
Usage
Usage rule |
This component is generally used as a Start component. It must be |
Getting country names using tWebServiceInput
the country name corresponding to a given country code and displays the output on the
Run console view.
Getting country names using tWebServiceInput
-
Drop a tWebServiceInput component and a
tLogRow component from the Palette onto the design workspace. -
Link the two components using a Row >
Main connection. -
Double-click the tWebServiceInput component
to open its Basic settings view. -
Click the […] button next to Edit schema to open the Schema dialog box and define the schema for the response from
the Web service.In this example, the schema is composed of only one column: Result. -
In the WSDL field, specify the WSDL URL of
the Web service to be used, http://www.webservicex.net/country.asmx?WSDL in this
example. -
If you are using a proxy server, select the Use http
proxy check box and enter the necessary connection
information. -
In the Method name field, enter the method to
be used. Note that the method name is case sensitive.In this example, we use the method GetCountryByCountryCode. -
In the Parameters area, click the plus
[+] button to add a row to the table, then
enter a country code, fr in this
example.. -
Then save your Job and press F6 to execute
it.The country information is returned from the Web service and displayed on the
Run view.