tWebService : String cannot be cast to java.util.List

Four Stars

tWebService : String cannot be cast to java.util.List

Hello there,

 

We are using tWebService and our job design is
tFileInputDelemited -> tFlowToIterate -> tFixedFlowInput -> tWebService.

The input file is with CSV format and the webservice we has using has some tree node structure.
(one Root with multiple items node)

There we are getting below error.
(java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List)

Is there any advice for this case.

 

Thanks and Regards,
May

Moderator

Re: tWebService : String cannot be cast to java.util.List

Hello,

Are you calling a SOAP or REST webservice by using twebservice component? What's the input parameter for the web service? List object?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars May
Four Stars

Re: tWebService : String cannot be cast to java.util.List

Hello,

 

It is SOAP service.

And our input is CSV file and using string parameter.

Even we've tried with List, it difficult to pass as parameter to web service.

Because WebService has tree structure and our input file has one level structure.

 

Thanks and Regards,

May

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog