Tuesday 10 November 2015

Using Javascript to access liferay services

The Below code will show you how you can create the service in Liferay and how you can call that services using javascript.
  1. For this, First you have to create service builder(service.xml) to build service using ant build-service command.
service.xml
<!DOCTYPE
service-builder PUBLIC "-//Liferay//DTD Service Builder
6.2.0//EN"         
"http://www.liferay.com/dtd/liferay-service-builder_6_2_0.dtd"><service-builder
package-path="com.evon">    <author>manish</author>
   <namespace>JSONService</namespace>    <entity
name="Employee" local-service="true"
remote-service="true">        <!-- PK fields -->
For full Code about using Javascript to access Liferay Services visit Findnerd.
Being an effective forum, here you can also post & look for various programming queries along with their solutions including c, android, php, javascript questions and answers etc.

No comments:

Post a Comment