Methods that receive maps and hashmaps as parameters aren't accesible via web services

Description

Some methods doesn't appear in the web services list. That is because we have added maps to the list of parameters and those aren't supported by web services.

Examples: addArticle and updateArticle in JournalArticleLocalServiceImpl.java

Activity

Show:

Michael Saechang February 10, 2012 at 10:01 AM

Committed on:
6.1.x GIT ID: 11037836a543b1ffe0afd7942d82ff44994e267b.
6.2.x GIT ID: 11037836a543b1ffe0afd7942d82ff44994e267b.

Eduard Grinchenko January 18, 2012 at 7:42 AM

It's really good solution 🙂

Juan Fernández January 18, 2012 at 7:32 AM

That's the problem! Maps are not suported, so we need to create an array of keys and an array of values and then merge them internally in the server. That's the approach I'm implementing for all <Locale, String> maps. What do you think about it?
I'm almost there
Thanks!
Juan

Eduard Grinchenko January 18, 2012 at 7:23 AM

There is one problem. Can we use method parameters with the Map. e.g. can we use method
void foo(Map<int,int> x);
in axis?

Juan Fernández January 12, 2012 at 6:51 AM

Yeap, Grinchenko Eduard, that's a workaround, but I have to fix it in a proper way.
Thanks for the feedback! 🙂
Juan

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Branch Version/s

6.1.x

Backported to Branch

Committed

Affects versions

Priority

Zendesk Support

Created January 9, 2012 at 7:34 AM
Updated June 24, 2023 at 3:46 PM
Resolved March 12, 2012 at 3:05 PM