Skip to content

Webservice Implementing

anja edited this page Nov 30, 2016 · 1 revision

Implementing

How to change the Webservice Interface

The implementation of the Webservice can be find in the class KnowledgeFinderServiceImpl which extends the abstract class KnowledgeFinderServiceBaseImpl. If you need to change the Webservice adding/removing functions or changing the parameters, you have only to edit the class
KnowledgeFinderServiceImpl and run the webservice builder of the liferay-maven plugin, rebuild and redeploy the project in your liferay instance.

  • Command line:

    cd ./webservice/
    mvn liferay:build-service clean install liferay:deploy

    If Maven runs out of memory set the environment variable MAVEN_OPTS e.g. to -Xmx512m.

  • Eclipse:

    • Add new Maven Run Configuration with base directory ${workspace_loc:/webservice}, goal liferay:build-service clean install liferay:deploy to build again the webservice project.