掲示板

Consume SOAP web service in liferay 6.2 for Multiple portlets ?

6年前 に RAVI RAJAMANI によって更新されました。

Consume SOAP web service in liferay 6.2 for Multiple portlets ?

Regular Member 投稿: 123 参加年月日: 14/12/07 最新の投稿
Hi,

Need to consume a SOAP web-service in liferay portlets.

I have followed following steps for consume it portlet.
* using wsdl i have created a stub or proxy and i have consumed it porlet.


if i need consume same service in multiple portlets
What will be the approach ?

one way is create a stub in all portets individually and consume it.
Is there any other option or other way to crate a stub once and consume it in all the portlets.

Regards,
Ravi R
thumbnail
6年前 に David H Nebinger によって更新されました。

RE: Consume SOAP web service in liferay 6.2 for Multiple portlets ?

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
RAVI RAJAMANI:
if i need consume same service in multiple portlets
What will be the approach?


Me? I'd be leveraging the "fake entity" approach I reviewed in my blog. Using fake entities, you encapsulate the external service access, then from a portlet perspective you access it via a similar service API that you do for any other Liferay data access.









Come meet me at Devcon 2017 or 2017 LSNA!
6年前 に RAVI RAJAMANI によって更新されました。

RE: Consume SOAP web service in liferay 6.2 for Multiple portlets ?

Regular Member 投稿: 123 参加年月日: 14/12/07 最新の投稿
David H Nebinger:


Me? I'd be leveraging the "fake entity" approach I reviewed in my blog. Using fake entities, you encapsulate the external service access, then from a portlet perspective you access it via a similar service API that you do for any other Liferay data access.


I'm not getting what u are saying ,can you elaborate your approach.