Forums de discussion

JSON / REST Service problem

Smoodo Schmitt, modifié il y a 13 années.

JSON / REST Service problem

New Member Publications: 2 Date d'inscription: 31/10/10 Publications récentes
Hi there,

following Problem:

When i call my service over json api I get not results.

http://127.0.0.1:8080/example_news-portlet/json?serviceClassName=de.example.news.service.NewsEntryServiceUtil&serviceMethodName=findByOrgId&serviceParameters=[{orgid:10311}]

The orgId 10311 exists in the database. Unfortunately I get a empty result {}.
I can see that Liferay is validating the request. When I change the serviceClass to another class I get a error msg in logfile.
The method in the util class is never invoked!

What I have done:
I worte a portlet with an simple service in it. Declared as remote-service, build-service,build-wsdd, deployed.

The axis webservice is working fine.

Without the serviceParameters
Whats the problem with json?


It seems, that this is a problem with serviceParameters parameter. Any method without parameter works.