pass list to service in beanshell - syntax

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

pass list to service in beanshell - syntax

Jim Yanda
Hello,
I'm trying to test a service in beanshell and need to know the syntax for passing a list to the service. I am doing this:
result = dispatcher.runSync("myNewService", UtilMisc.toMap("orderIdList", "my, id, list, here", "login.username", "foo", "login.password", "bar"));
I'm getting an error saying I'm passing a string.
Thanks.
Jim
Reply | Threaded
Open this post in threaded view
|

Re: pass list to service in beanshell - syntax

Bruno Busco
Not sure 100% but please read here:
http://markmail.org/message/73e5wtnb2m4w4ikw?q=bruno+busco+map+parameter+service&page=1&refer=73e5wtnb2m4w4ikw

hope it helps.
-Bruno

2008/6/17 Jim Yanda <[hidden email]>:

>
> Hello,
> I'm trying to test a service in beanshell and need to know the syntax for
> passing a list to the service. I am doing this:
> result = dispatcher.runSync("myNewService", UtilMisc.toMap("orderIdList",
> "my, id, list, here", "login.username", "foo", "login.password", "bar"));
> I'm getting an error saying I'm passing a string.
> Thanks.
> Jim
> --
> View this message in context:
> http://www.nabble.com/pass-list-to--service-in-beanshell---syntax-tp17899770p17899770.html
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: pass list to service in beanshell - syntax

Jacques Le Roux
Administrator
In reply to this post by Jim Yanda
Please use rather user ML for such questions :
http://docs.ofbiz.org/display/OFBADMIN/Mailing+Lists#MailingLists-DeveloperList:dev@...

Thanks

Jacques

From: "Jim Yanda" <[hidden email]>

>
> Hello,
> I'm trying to test a service in beanshell and need to know the syntax for
> passing a list to the service. I am doing this:
> result = dispatcher.runSync("myNewService", UtilMisc.toMap("orderIdList",
> "my, id, list, here", "login.username", "foo", "login.password", "bar"));
> I'm getting an error saying I'm passing a string.
> Thanks.
> Jim
> --
> View this message in context: http://www.nabble.com/pass-list-to--service-in-beanshell---syntax-tp17899770p17899770.html
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.
>