Marco Napolitano

Passionate and addicted to technology

Expose a REST method of Liferay without authentication

Starting from 6.2 version of Liferay the complete web service infrastructure (both SOAP and REST) is only available through user authentication.

This new solution seems to be safer but it could be a problem in case you need to expose services that do not require authentication; so let's see how to expose a REST service without authentication.

Read more: Expose a REST method of Liferay without authentication

Don't expose a Liferay REST service

Who uses Liferay Service Builder knows that it's possible to generate both a local services layer, ie callable by the local JVM, and a remote services layer, that is accessible from a remote JVM typically via web services (REST or SOAP).

The default behaviour is that all methods found in the *ServiceImpl class will be exposed as a web service ones; so let's see how to prevent a single method to be exposed as a service.

Read more: Don't expose a Liferay REST service