Foren

Android: No JSON web service action with path /mbmessage/add-message

Ouds CG, geändert vor 9 Jahren.

Android: No JSON web service action with path /mbmessage/add-message

New Member Beiträge: 3 Beitrittsdatum: 09.05.14 Neueste Beiträge
/mbmessage/add-message
HTTP方法  POST
com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl
addMessage
参数
p_auth String
authentication token used to validate the request

parentMessageId long
subject java.lang.String
body java.lang.String
format java.lang.String
inputStreamOVPs java.util.List
anonymous boolean
priority double
allowPingbacks boolean
serviceContext com.liferay.portal.service.ServiceContext

I test the jsonws api via webpage, it is correct. I input parentMessageId, subject, body, format, priority, and choose the "true" for anonymous and allowPingbacks. But when I invoke in android code, for example,
		    		
MBMessageService mbMsgService = new MBMessageService(CONSTANT.session);
mbMsgService.addMessage(parentMsgId, msgSubject, msgBody, extras.getString(BbsMessage.FORMAT), null, true, 0, true, null);

The logcat tell me "com.liferay.mobile.android.exception.ServerException: No JSON web service action with path /mbmessage/add-message and method null for /"

There are four addMessage method for MBMessageService, the other 3 addMessage is run in my hope....

help, thanks
thumbnail
James Falkner, geändert vor 9 Jahren.

RE: Android: No JSON web service action with path /mbmessage/add-message

Liferay Legend Beiträge: 1399 Beitrittsdatum: 17.09.10 Neueste Beiträge
Ouds CG:

why did you paste this, I mean that the liferay official RPC API of /mbmessage/add-message is incorrect ...


Pretty sure it was spam and the user has been dealt with. We have ways of dealing with this. Special ways.