Fórum

Consume SOAP web service in liferay 6.2 for Multiple portlets ?

RAVI RAJAMANI, modificado 6 Anos atrás.

Consume SOAP web service in liferay 6.2 for Multiple portlets ?

Regular Member Postagens: 123 Data de Entrada: 07/12/14 Postagens Recentes
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
David H Nebinger, modificado 6 Anos atrás.

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

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
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!
RAVI RAJAMANI, modificado 6 Anos atrás.

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

Regular Member Postagens: 123 Data de Entrada: 07/12/14 Postagens Recentes
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.