Using the advanced settings of tWebServiceInput (Step 2/3) Retrieve the data published on a Web service using the advanced settings of tWebServiceInput.

In this tutorial, you will learn the tWebServiceInput advanced settings.

For ease of use, this tutorial is divided into three segments:
- [Using the advanced settings of tWebServiceInput (Step 1/3)]
- [Using the advanced settings of tWebServiceInput (Step 2/3)]
- [Using the advanced settings of tWebServiceInput (Step 3/3)]

Download it!

Do you want to practice?

Download tutorialProject.zip includes all the jobs needed to carry out this tutorial. Please, download it!

You can also:
Send it!

Share it!
Next Step: [Using the advanced settings of tWebServiceInput (Step 3/3)]

 


Create the Job Design

In the Repository:

Right-click Job Designs.

In the menu, click Create Job to open the New Job wizard.

In the New Job wizard:

In the Name field, fill in the name of the Job: tWebServiceInput_scenario2

Click Finish to close the wizard and create the Job.

The Job Designer opens an empty Job.


Next

In the Palette:

To add the tWebServiceInput component, click the Internet family.

Click the tWebServiceInput component and drop it onto the Job Designer.

Next

In the Palette:

To add the tLogRow component, click the Logs & Errors family.

Click the tLogRow component and drop it onto the Job Designer.

Next

In the Job Designer:

To link the components together, right-click the tWebServiceInput, hold and drag to the tLogRow.

Next

In the Job Designer:

Document your Job by adding it a title.

To do so, click in the blue area around it.

Click the Component view.

Check the Show subjob title box, and, in the Title field, fill in the corresponding title: Using tWebServiceInput advanced settings.

Next
Set the context variables

Click the Contexts view to put your login and password to be used in the tWebserviceInput advanced settings into a context variable.

In the Contexts view:

Click the Variables tab and click two times the [+] button at the bottom to add two context variables.

Rename the first line login and set its type to String. Rename the second line pwd and set its type to Password.

Next
In the Contexts view:

Click the Values as tree tab and make sure the two variables are set to Default context.
Next
In the Contexts view:

Click the Values as table tab.

Fill in the Default column with the email address and the password used to connect to the Web service.
Next
Set the basic settings of the tWebServiceInput

From the FundHoldings page, click WSDL to retrieve the WSDL address needed to configure the tWebServiceInput basic settings.

Copy the WSDL address.

Next
In the Job Designer:

Double-click tWebServiceInput to show the corresponding Component view to define its Basic Settings.

In the Component view:


Paste the WSDL address retrieved from the Web Site in the WSDL field.

Click [...] next to the Edit schema field to open the Schema wizard.

Next


The schema is extracted from the tags of the XML file generated from the Web service.

In the Schema wizard:

Click [+] to add the data corresponding to the data we want to retrieve.

Configure the schema as shown in the screen capture.

Click OK to validate.

Next

Set the advanced settings of the tWebServiceInput


In the Component view:

Click Advanced settings tab to access the tWebServiceInput advanced functionalities.

Check the Advanced Use box.

Click the [...] button next to the WSDL2Java field to generate routines containing the code of the Web service client.

Next

In the Repository:

The routines are created under the Code > Routines node, in a folder with the same name as your Job.

The code generated in the routines allows you to query a distant object as if it was a local object.


 

    Download it!     Send it!     Share it!

Do you want to practice?

Download tutorialProject.zip includes all the jobs needed to carry out this tutorial. Please, download it!

Friends / colleagues may be interested in this tutorial? Send it to them!

You liked this tutorial ? Support it!

[ top ]