留言板

Web Services using Liferay 6?

thumbnail
Mazhar Alam,修改在12 年前。

Web Services using Liferay 6?

Regular Member 帖子: 191 加入日期: 11-11-25 最近的帖子
Hi all,
Anyone having idea about creating web services using Liferay 6.

Thanks in advance..
thumbnail
Juan Gonzalez P,修改在12 年前。

RE: Web Services using Liferay 6?

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Mazhar Alam:
Hi all,
Anyone having idea about creating web services using Liferay 6.

Thanks in advance..


Tons of info round there. Please search first.
thumbnail
Mazhar Alam,修改在12 年前。

RE: Web Services using Liferay 6?

Regular Member 帖子: 191 加入日期: 11-11-25 最近的帖子
Hi,
I am unable to search REST web services in the forum.if you have any info or link do share.

Appreciate your response.
Daniel Wilmes,修改在12 年前。

RE: Web Services using Liferay 6?

Regular Member 帖子: 164 加入日期: 11-5-23 最近的帖子
I would suggest using the plugins SDK. When creating a hook, portlet, ext environment you can use the build in ant script to run "ant build-wsdd". Typically the way I have done it is create a service that has no column names, just an entity. Generate the service using the "ant build-service". Make sure you set the entity you have created as remote-service="true". Implement the methods after doing a "ant build-service". You will need to make sure you set the property in the portal-ext.properties file with this property:


# Axis Servlet
##
#
# Input a list of comma delimited IPs that can access this servlet. Input a
# blank list to allow any IP to access this servlet. SERVER_IP will be
# replaced with the IP of the host server.
#
#axis.servlet.hosts.allowed=127.0.0.1,SERVER_IP                    
axis.servlet.hosts.allowed=


Deploy your portlet and use:
http:\\domainname+"\"+hookname(or portlet)+"\axis"