Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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? 
Labels (2)
3 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

Right now it's a web service utilizing Apache CXF and deployed in Tomcat.
Anonymous
Not applicable
Author

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