Issue
-
The json-enabled value specifies whether or not the entity should be annotated for JSON serialization. By default, if the remote-service value is true, then the json-enabled value is true.
-
When setting this attribute to false in service.xml, and rebuilding the service, this does not have an effect on the generated code, I still see the *Service interface annotated with @JSONWebService.
Environment
- Liferay DXP 7.0
Resolution
- Update build.gradle for your service with version 1.0.304 of service builder
dependencies {
...
serviceBuilder group: "com.liferay", name: "com.liferay.portal.tools.service.builder", version: "1.0.304"
} - Run "blade gw buildService" and confirm that the "JSONWebService" does not appear in the file