3
我正在嘗試使用Liferay JSON WebService API從我的數據庫訪問實體(例如「學生」)。我使用ServiceBuilder爲此實體構建服務,並在StudentServiceImpl中實現了一個「public Student getStudentByID(long StudentId){...}」方法。 我也能夠通過「http://sampletest.com/RestTestLiferayProject-portlet/api/jsonws」 查看和訪問此方法如何從另一個portlet調用此服務?在liferay中調用json web服務
我在說創建Web服務客戶端。無論如何,我遵循http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/writing-the-remote-service-class-liferay-portal-6-1-dev-guide-en這個鏈接來創建我的json ws。這裏是wsdl http:// localhost:8080/event-listing-portlet/api/axis/Plugin_Event_EventService?wsdl 。但我無法在我的情況下獲得wsdl – Sree