【问题标题】:Invoking json web services in liferay在 liferay 中调用 json web 服务
【发布时间】:2014-06-08 06:30:27
【问题描述】:

我目前正在尝试使用 Liferay JSON WebService API 从我的数据库中访问实体(例如“学生”)。我使用 ServiceBuilder 为这个实体构建了服务,并在 StudentServiceImpl 中实现了一个方法“public Student getStudentByID(long StudentId){...}”。 我还可以通过“http://sampletest.com/RestTestLiferayProject-portlet/api/jsonws”查看和访问此方法 如何从另一个 portlet 调用此服务?

【问题讨论】:

    标签: liferay liferay-6


    【解决方案1】:

    我的理解是 json 服务旨在从您的 Liferay 实例外部使用。您应该能够从 portlet 中导入服务类并直接使用它们。

    如果我误解了您的问题,我们深表歉意。

    【讨论】:

    猜你喜欢
    • 2022-07-12
    • 2012-08-22
    • 2019-01-23
    • 2019-01-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-28
    • 1970-01-01
    相关资源
    最近更新 更多