[resolved] tWebService - "You must provide a Map to create a complexType"

One Star

[resolved] tWebService - "You must provide a Map to create a complexType"

This Error comes as soon as i try to set tWebservice parameter to a list with complexTypes.. List<String[]> for example
Did anyone had success creating such Map?

Accepted Solutions
One Star

Re: [resolved] tWebService - "You must provide a Map to create a complexType"

i resolved it myself..
here is the code to correctly map an complexObjectArray
java.util.List<java.util.Map<String,String>> arguments = new java.util.ArrayList<java.util.Map<String,String>>();
java.util.Map<String, String> argMap = new java.util.HashMap<String, String>();
argMap.put("key", "entity_id");
argMap.put("value", "777");
arguments.add(argMap);
row.myArguments = arguments; //or globalMap.put("myArguments", arguments); //whatever you may use..

All Replies
One Star

Re: [resolved] tWebService - "You must provide a Map to create a complexType"

i resolved it myself..
here is the code to correctly map an complexObjectArray
java.util.List<java.util.Map<String,String>> arguments = new java.util.ArrayList<java.util.Map<String,String>>();
java.util.Map<String, String> argMap = new java.util.HashMap<String, String>();
argMap.put("key", "entity_id");
argMap.put("value", "777");
arguments.add(argMap);
row.myArguments = arguments; //or globalMap.put("myArguments", arguments); //whatever you may use..

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

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download