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