File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes Restful services from liferay. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Restful services from liferay." Watch "Restful services from liferay." New topic

Restful services from liferay.

zainu Mehmood
Ranch Hand

Joined: May 09, 2007
Posts: 45
Hi Guys,

Need a suggestion, i have to call some external Restful webservices in my liferay portlet. From better deisgn point of view, can anybody suggest me from where should i call this code. Perhaps my localservice generated from service bulider? Any suggestions?

ahmed dohar

Joined: Oct 06, 2009
Posts: 26
you can create your custom service and call from it the external Restful web services , else if you already have local service of liferay. and I suggest the first solution to separate your business from liferay

Amro Ali

Joined: Feb 29, 2012
Posts: 25
Depends on what you need to do. If you want to add the capability to call liferay services for a specific portlet, you will need to edit the service.xml and enable remote service and rebuild the service. this will generate services with the axis framework inside liferay.

Other than that, I find Ahmed dohar's suggestion a good idea
you can create your custom service and call from it the external Restful web services
I agree. Here's the link:
subject: Restful services from liferay.
Similar Threads
Counting the number of visitors for a web page- JavaScript and Struts1
WOL portlets in upcoming Liferay release.
JSF Based login portlet for liferay
Liferay 6 and remote API
Glassfish 3 - how to change the classpath for liferay??