Hello,

I'm trying to perform a search with flex data management services to use the
advantages like caching/paging.

The problem is each time I try to perform the call (fill arraycollection
with results), I get an error message.
[RPC Fault faultString="Unable to locate a fill method for destination
'search' which matches the following parameters: [TEST, TEST123]."
faultCode="Server.Processing" faultDetail="null"]

I've been playing with the parameter options (switching from List to map
etc.), but nothing worked.

My server side java code looks like this

import java.util.List;
import java.util.Map;
import java.util.Vector;
import java.util.Collection;

public class SearchServiceAssembler
{      
    public SearchServiceAssembler()
    {
        System.out.println("SearchServiceAssembler Constructor \n");
    }
   
    //Other methods

    public Collection fill(List test)
    {
       
System.out.println("###############"+test.toString()+"###############");
        System.out.println("SearchServiceAssembler fill \n");
        Vector v = new Vector();
        return v;
    }
}

Here is my data-management configuration

<destination id="search">
        <adapter ref="java-dao" />

        <properties>
                <source>my.package.SearchServiceAssembler</source>
                <scope>application</scope>

                <metadata>
                        <identity property="account" />
                </metadata>

                <server>
                    <fill-method>
                        <name>fill</name>
                        <params>java.util.List</params>
                    </fill-method>
                </server>
        </properties>
   </destination>

and offcourse my client side Actionscript code

-> Creation of dataService
 searchService = new DataService("search");                          
 var myrtmp:RTMPChannel = new RTMPChannel("my-rtmp",
"rtmp://*************:2038");
  searchService.channelSet = new ChannelSet();
  searchService.channelSet.addChannel(myrtmp);

-> call to searchService
searchService.fill(found,'TEST','TEST'); //With found initialized
(ArrayCollection)



When I'm start the livecycle server I can see he is passing the constructor
of my assembler. So he's loaded I think....

Thanks ;)
Ward


-- 
View this message in context: 
http://www.nabble.com/fill-method-problem-with-parameters-%28Flex-data-management-services%29-tp20340634p20340634.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to