Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
G R Rajesh Babu
Need to create a new portlet webservice and its client
March 3, 2011 3:55 AM
Answer

G R Rajesh Babu

Rank: Junior Member

Posts: 77

Join Date: February 7, 2010

Recent Posts

Hi Guys,

I need to create a portlet-webservice in one application and need to access the created portlet-webservice by creating portlet-webservice client in the other application as both are liferay applications. Please suggest me ways to achieve this.
Thiago Leão Moreira
RE: Need to create a new portlet webservice and its client
March 3, 2011 4:56 AM
Answer

Thiago Leão Moreira

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1389

Join Date: October 10, 2007

Recent Posts

Hi Rajesh,

You should create your service using the Service Builder and setting the remote-service flag to true.

1    <entity name="Foo" local-service="true" remote-service="true" uuid="true">
Srikanth Konjarla
RE: Need to create a new portlet webservice and its client
March 3, 2011 8:33 AM
Answer

Srikanth Konjarla

Rank: Junior Member

Posts: 51

Join Date: October 24, 2008

Recent Posts

1. Create service (using service builder) with remote flag set to "true" and use the same service to build your local portlet and remote portlet.

2. You can share the portlet from a Liferay instance to another using WSRP. In this case the entire portlet markup is fetched and rendered locally from remote Liferay instance.
G R Rajesh Babu
RE: Need to create a new portlet webservice and its client
March 4, 2011 1:21 AM
Answer

G R Rajesh Babu

Rank: Junior Member

Posts: 77

Join Date: February 7, 2010

Recent Posts

Hi Thiago Leão Moreira,

thanks for ur suggestion. i will try using service builder.
G R Rajesh Babu
RE: Need to create a new portlet webservice and its client
March 4, 2011 1:22 AM
Answer

G R Rajesh Babu

Rank: Junior Member

Posts: 77

Join Date: February 7, 2010

Recent Posts

Srikanth Konjarla:
1. Create service (using service builder) with remote flag set to "true" and use the same service to build your local portlet and remote portlet.

2. You can share the portlet from a Liferay instance to another using WSRP. In this case the entire portlet markup is fetched and rendered locally from remote Liferay instance.



Hi Srikanth,

thanks for ur suggestion. i will start using service builder.
Abdelrahman Mohamed El Ghanam
RE: Need to create a new portlet webservice and its client
April 17, 2011 4:50 AM
Answer

Abdelrahman Mohamed El Ghanam

Rank: Junior Member

Posts: 41

Join Date: September 30, 2010

Recent Posts

Hey Rajesh,

did you get the webservice to work ? if you did, did you make any other modifications other then adding the remote-service="true" to your service.xml & add the methods you wish to expose to the class impl ??


Thanks ...
Mathieu Hicauber
RE: Need to create a new portlet webservice and its client
December 21, 2011 2:47 AM
Answer

Mathieu Hicauber

Rank: Junior Member

Posts: 79

Join Date: December 22, 2010

Recent Posts

Hi Abdelrahman

Best tutorial I have found so far for building a WS with liferay 6.0.5 Service builder : http://www.liferay.com/community/wiki/-/wiki/Main/Creating+Liferay+6+plugin+web+service

Hope this helps !

Mathieu.