Hello,
I'm trying to serialize an Actionscript associative array to Java Map.
When I do my request I get an error
*[RPC Fault faultString="The fill method is not defined for destination
'search' which matches fill parameters: '[
{
nickname =
}] (class: java.util.ArrayList)'" faultCode="Server.Processing"
faultDetail="null"]*
(Even with a value it doesn't work). Looks like he makes an ArrayList at
serverside... -> but is this possible because ArrayList only can contain
numeric keys (I think?)
This is my data-services destination config
* <destination id="search">
<adapter ref="java-dao" />
<properties>
<source>be.enjoy.SearchServiceAssembler</source>
<scope>application</scope>
<metadata>
<identity property="account" />
</metadata>
<server>
<fill-method>
<name>fill</name>
<params>java.util.Map</params>
</fill-method>
</server>
</properties>
</destination>*
And my method
*
public Collection fill(Map criteria)
{
System.out.println(criteria.toString());
//SearchServiceDAO service = new SearchServiceDAO();
//List results = service.searchCams(criteria);
Vector v = new Vector();
return v;
//return results;
}*
Thx!
Ward