[jboss-user] [JBoss Portal] - Re: Portlet calling a webservice

halversp do-not-reply at jboss.com
Fri Sep 22 15:52:41 EDT 2006


You invoke webservices from a portlet just like any other WS client -- get your hands on the service proxy (either pre-generated or through a dynamic proxy) and start calling operations (either through a generated service endpoint interface or dynamically).  The portlet configuration mechanism may give you a cleaner place to isolate the configuration (e.g. the endpoint URL, etc.), and there are probably some lifecycle considerations (e.g. acquire the proxy in the init() method), but otherwise there's nothing special about it being in portlet. So if you're looking for examples you need to look at the usual web services tutorials.

WSRP has nothing to do with it -- WSRP is about calling portlets via webservices, not calling web services from portlets.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973638#3973638

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973638



More information about the jboss-user mailing list