[magnolia-user] Re: Error calling IcndbService via restfn templating function

2017-05-15 Thread Marco (via Magnolia Forums)
Hi Christoph, I've looked at your examples and the following ways don't work due to the same error: [#assign res3 = restfn.call(jokesService, "joke",params ) /] [#assign res4 = restfn.call( "icndbClient", "info.magnolia.documentation.modules.restclientexamples.service.IcndbService", "jok

[magnolia-user] Re: Error calling IcndbService via restfn templating function

2017-05-12 Thread Christoph Meier (via Magnolia Forums)
Hi Marco I have tried out the expression proposed by Jan. I had te same result as you. To be honest, i also was struggling a few times while using restfn. And at some point i started to use it this way: [code] [#assign res5 = restfn.call( "icndbClient", "info.magnolia.documentation.modules.rest

[magnolia-user] Re: Error calling IcndbService via restfn templating function

2017-05-12 Thread Marco (via Magnolia Forums)
Hi Jan, thanks for your reply, I've tried as you suggested but it doesn't work. I've tried also in the following ways: [#assign response = restfn.call("icndbClient", "com.example.IcndbService", "joke", ["random", "Lisa", "Klein"]) /] or [#assign jokesService = restfn.getService("icndbCl

[magnolia-user] Re: Error calling IcndbService via restfn templating function

2017-05-11 Thread Jan Haderka (via Magnolia Forums)
Hi Marco, while the 2 query parameters are optional, rest functions have no means of knowing that, so you need to provide values for all parameters that method requires. changing your code to [code]restfn.call("icndbClient", "com.example.IcndbService", "com.example.IcndbService.joke", ["random