[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..