Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: ServiceBuilder not showing REST json service exposed in Liferay DXP
I have following class as ServiceImpl,
It doesn't show getJournalContent method available in api/jsonws.
Liferay Version: dxp-7.0-sp6,
Went thorugh https://issues.liferay.com/browse/LPS-66607
Is it fixed with latest service pack or fix pack ?
public class POCServiceImpl extends POCServiceBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never
reference this class directly. Always use {@link
poc.service.service.POCServiceUtil} to access the poc remote
service.
*/
@Override
@JSONWebService
public JSONObject getJournalContent(long
groupId){
System.out.println("1111- ");
JSONObject jsonObject =
JSONFactoryUtil.createJSONObject();
System.out.println("2222- ");
jsonObject.put("content",
JournalArticleLocalServiceUtil.getArticles(groupId).get(0).getContent());
System.out.println("3333- ");
return
jsonObject;
}
}
LPS-66607 is included in fixpack 10 and SP2 or higher.
If you are using Liferay DXP (enterprise product) open a LESA ticket to enterprise support.
If you are using Liferay Portal (community product) try testing your bug in last published 7.0 GA version
Thanks Jorge for providing update on bug.
Will check internally with team, and if required, we will raise bug ticket.
Thanks,
Brijesh
Powered by Liferay™