<entity-condition entity-name="Product" list-name="productList" >
productList is a map of all the products. the service you pass this to must processes that map. madppiper sent the following on 9/30/2008 11:13 AM: > Hey, > > I am trying to do the following: I want to list all Products that are > currently indexed by the Entity-Engine, then return their values as a list > to a service, so that i can parse them to a different service afterwards. I > did that as a following > > 1. I created a simple-method, which is supposed to look-up all indexed > products on the entity engine and return them as a list: > > <simple-method method-name="listProducts" > short-description="list all Products" > > <entity-condition entity-name="Product" list-name="productList" > > > </simple-method> > > 2. I added a corresponding service: > > <service name="listProducts" default-entity-name="SolrIndex" > engine="simple" > location="../SimpleMethodServices.xml" invoke="listProducts" > auth="true"> > <description>listAll</description> > > > <attribute name="productList" type="List" mode="OUT" optional="true"/> > > </service> > > > 3. However, once run, I will only retrieve the success message, not the > actual OUT parameter (which I was hoping would be the List containing the > relevant data). > > Could anybody help me point out my mistake? > > Thx a bunch!
