
Anonymous
Not applicable
2013-01-21
06:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using Web Services in Talend
Hi,
I am evaluating Talend on behalf of a client.
I have a scenario where I need to call multiple web services. The first web service call returns a security token (a string value) - All subsequent web service calls use this security token (passed as a parameter).
I cannot figure out how to use this security token in the subsequent calls. Do I need to assign this value to a global variable, then merge this variable into the flow??
Also, most of my web service calls require a complex type as an input. Talend doesn't seem to expose complex types from my wsdl as schemas i can use. Is there a trick to do this?
Regards,
D.
I am evaluating Talend on behalf of a client.
I have a scenario where I need to call multiple web services. The first web service call returns a security token (a string value) - All subsequent web service calls use this security token (passed as a parameter).
I cannot figure out how to use this security token in the subsequent calls. Do I need to assign this value to a global variable, then merge this variable into the flow??
Also, most of my web service calls require a complex type as an input. Talend doesn't seem to expose complex types from my wsdl as schemas i can use. Is there a trick to do this?
Regards,
D.
398 Views
8 Replies

Anonymous
Not applicable
2013-01-22
01:35 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I suggest you to learn tWebServicecomponent, the job looks like:
tWebservice_1--main--tWebservice_2--tLogRow
Shong
I suggest you to learn tWebServicecomponent, the job looks like:
tWebservice_1--main--tWebservice_2--tLogRow
Shong
398 Views

Anonymous
Not applicable
2013-01-22
05:22 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply Shong.
I dont have a problem understanding how to use the output from one service call as the input to another!
My need is more specific where the result from the first web service call is used in the input of every subsequent web service call
e.g.
t_Webservice_1--main--tSetGlovalVar_1
But further down the processing chain, when i want to do this..
t_Webservice_2--main--tLogRow
How do i include the global variable in the input mapping for the second web service call?
Regards,
D.
I dont have a problem understanding how to use the output from one service call as the input to another!
My need is more specific where the result from the first web service call is used in the input of every subsequent web service call
e.g.
t_Webservice_1--main--tSetGlovalVar_1
But further down the processing chain, when i want to do this..
t_Webservice_2--main--tLogRow
How do i include the global variable in the input mapping for the second web service call?
Regards,
D.
398 Views

Anonymous
Not applicable
2013-01-22
08:17 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
You can use tFixedFlowInput to generate the data flow and pass it to t_Webservice_2 as input parameters. for example:
t_Webservice_1--main--tSetGlovalVar_1
|
onsubjobok
|
tFixedFlowInput--main--t_Webservice_2--main--tLogRow
on tFixedFlowInput, define the columns which you need to pass them to twebservice_2 as input paramter on the schema, and set its value like:
column:value
id
Integer)globalMap.get("id_key")
//id_key is a key of a global variable defined on tSetGlovalVar_1.
Shong
You can use tFixedFlowInput to generate the data flow and pass it to t_Webservice_2 as input parameters. for example:
t_Webservice_1--main--tSetGlovalVar_1
|
onsubjobok
|
tFixedFlowInput--main--t_Webservice_2--main--tLogRow
on tFixedFlowInput, define the columns which you need to pass them to twebservice_2 as input paramter on the schema, and set its value like:
column:value
id
//id_key is a key of a global variable defined on tSetGlovalVar_1.
Shong
398 Views

Anonymous
Not applicable
2013-01-22
10:52 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Shong,
That makes sense.
I am trying to understand if Talend can import complex types from a WSDL and create schemas from these types?
The closest I have come to correctly consuming my service is using tWebServiceInput and using the advanced features to generate client stubs - then, mapping the inputs and outputs in the code window.
is this the only option for working with external complex types?
Regards.
D.
That makes sense.
I am trying to understand if Talend can import complex types from a WSDL and create schemas from these types?
The closest I have come to correctly consuming my service is using tWebServiceInput and using the advanced features to generate client stubs - then, mapping the inputs and outputs in the code window.
is this the only option for working with external complex types?
Regards.
D.
398 Views

Anonymous
Not applicable
2013-01-23
08:02 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Have you tried tWebservice component for the complex types? Can you please show us an example of a WSDL?
Shong
Have you tried tWebservice component for the complex types? Can you please show us an example of a WSDL?
Shong
398 Views

Anonymous
Not applicable
2013-01-23
05:19 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Shong,
Yes, I have tried the tWebService component.
The component does present my complex types in the input and output mappings section (although it insists on presenting my type as an array?)
Ideally, I'd like to map my complex type to an "instance" of the type, if that makes sense.
I have emailed you directly a link to our WSDL.
Kind Regards,
D.
Yes, I have tried the tWebService component.
The component does present my complex types in the input and output mappings section (although it insists on presenting my type as an array?)
Ideally, I'd like to map my complex type to an "instance" of the type, if that makes sense.
I have emailed you directly a link to our WSDL.
Kind Regards,
D.
398 Views

Anonymous
Not applicable
2013-01-28
05:37 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Shong,
Did you have a chance to look at my WSDL?
D.
Did you have a chance to look at my WSDL?
D.
398 Views

Anonymous
Not applicable
2013-07-09
12:56 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi shong, david.
M new to talend and stuck in a sitiation.
I have a job in where i need to invoke a webservice.
and here i have the working wsdl url with me.
Can you suggest me the ways to do it.
Thanks
M new to talend and stuck in a sitiation.
I have a job in where i need to invoke a webservice.
and here i have the working wsdl url with me.
Can you suggest me the ways to do it.
Thanks
398 Views
