wood burning stoves 2.0*
The moose likes Portals and Portlets and the fly likes Consume webservice in themes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Consume webservice in themes" Watch "Consume webservice in themes" New topic
Author

Consume webservice in themes

Chinmay J. Shah
Greenhorn

Joined: Oct 03, 2007
Posts: 12
Hi,
I have created a new theme for my application in websphere portal server.
Now, I want to comsume a webservice to display some parameter on the screen.
Any idea, how to go for it?


Thanks & Regards,
Chinmay
John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Can you please make your question clear ? What do you mean by consume web-services in themes ? Do you want set any parameters in themes with the results of a web-service ?

Thanks
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

Create a Servlet that wraps the web service and hides all of the nasty details. Then have the result of the Servlet wrapped up on a custom tag. Then, place the custom tag in the theme.

The code becomes easy to manage in the Servlet, complexity is hidden from the custom tag, and the only thing that appears in the theme is the tag itself.

That's a direction. Doesn't need to be a Servlet. Could be just a POJO. But you don't want to pollute a theme any more than a theme is probably already poluted.

Good luck.

-Cameron McKenzie
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Consume webservice in themes
 
Similar Threads
WebService terminologies
JCA for small systems
UDDI registry
Sample Webservice
Simple Web Service: What to call it?