Using the output of one Webservice as the Input to another in a job

One Star

Using the output of one Webservice as the Input to another in a job

Hello, I'm currently exploring Talend and looking to build a simple proof of concept. I'm not sure if what I'm seeking to do is possible and would greatly appreciate some direction. 
Using Talend, I want consume web service A. A returns an encoded string. I would like to grab that string and store it. Then I would like to pass that stored string as an argument for a method in web service B. B would then decode the message, and return the decoded string. 
How would I go about doing this? 
Community Manager

Re: Using the output of one Webservice as the Input to another in a job

Hi 
I have a quick question, the webservice A/B you want to consume are built with Talend ESB product or other product/provider?
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Using the output of one Webservice as the Input to another in a job

Right now it's a web service utilizing Apache CXF and deployed in Tomcat.
Community Manager

Re: Using the output of one Webservice as the Input to another in a job

Hi 
You can use tWebserviceInput or tWebservice to call a general SOAP webservice. The job design looks like as below:
tWebserviceInput_1--main--tJavaRow
   |
onsubjobok
   |
tWebserviceInput_2---main--tLogRow

tWebserviceInput_1: call webservice A and returns the encode string. 
On tJavaRow: store the encode string to a global variable or context variable for used later, for example:
context.encode_string=input_row.ColumnNameStoredReturnResult;
tWebserviceInput_2: call webservice B and use context.encode_string as input parameter.

Please refer to the component user manual and learn tWebserviceInput component.

Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read