ServiceBuilder not showing REST json service exposed in Liferay DXP

Brijesh Desai, modified 7 Years ago. Junior Member Posts: 55 Join Date: 10/22/14 Recent Posts

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;
        
    }
    
}

thumbnail
Jorge Díaz, modified 7 Years ago. Liferay Master Posts: 753 Join Date: 1/9/14 Recent Posts

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

 

Brijesh Desai, modified 7 Years ago. Junior Member Posts: 55 Join Date: 10/22/14 Recent Posts

Thanks Jorge for providing update on bug.

Will check internally with team, and if required, we will raise bug ticket.

 

Thanks,
Brijesh