You forgot one line in your service.

<simple-method method-name="listProducts" short-description="list all
Products" >
    <entity-condition entity-name="Product" list-name="productList" >
<!-- this line will return the productList from this service -->
    <field-to-result field-name="productList"/>
</simple-method>

Ian

On Wed, Oct 1, 2008 at 2:13 AM, madppiper <[EMAIL PROTECTED]> wrote:

>
> 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!
> --
> View this message in context:
> http://www.nabble.com/Simple-Method-out-parameter-tp19747551p19747551.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>

Reply via email to