Forums de discussion

Consume SOAP web service in liferay 6.2 for Multiple portlets ?

RAVI RAJAMANI, modifié il y a 6 années.

Consume SOAP web service in liferay 6.2 for Multiple portlets ?

Regular Member Publications: 123 Date d'inscription: 07/12/14 Publications récentes
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, modifié il y a 6 années.

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

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
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, modifié il y a 6 années.

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

Regular Member Publications: 123 Date d'inscription: 07/12/14 Publications récentes
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.