Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Web Experience Factory wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 6.1
  • 6.1.2
  • 6.1.5
  • 6.1.5.1
  • 7.0
  • Ajax
  • Alerts
  • Annotations
  • attachment
  • best practices
  • BlackBerry
  • builder
  • builder faq
  • builders
  • charts
  • Code samples
  • Connections
  • css
  • Custom builder
  • CustomBuilder
  • dashboard
  • Data Access
  • data access faq
  • Data and variables
  • Database
  • Databases
  • Debugging
  • demo
  • demo models
  • demo projects
  • demo widget
  • demos
  • deployment
  • deployment faq
  • Deployment scenarios
  • development
  • dojo
  • Domino
  • faq
  • fixpack
  • General FAQ
  • getting started
  • Help
  • HTML
  • html templates
  • ILOG
  • integration
  • iPhone
  • JViews
  • Learning
  • Logging
  • lotus connections
  • Lotus Widget Factory
  • media dashboard
  • media pf
  • media widget
  • mobile
  • mobile smartphone development
  • Model development
  • new
  • Notifications
  • overview
  • page automation
  • Portal
  • Portal Integration
  • portal integration faq
  • Portlet
  • Portlet Factory 7
  • presentation
  • presentation faq
  • Profiling
  • Quickr
  • REST
  • rest faq
  • REST Service Call
  • restructure handler
  • rich ui
  • sample
  • sample application
  • samples
  • schema
  • Security
  • Smartphones
  • SOA
  • social
  • Source Control
  • sql
  • summary and drilldown
  • Team development
  • Troubleshooting
  • ui
  • User Interface
  • video
  • web 2.0
  • Web Experience Factory
  • Web Experience Factory 8
  • Web Services
  • websphere dashboard framework
  • wef
  • wpf
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Samples and Techniques for Web Experience Factory > IBM - Using the REST Service Call builder
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

IBM - Using the REST Service Call builder 

expanded Abstract
collapsed Abstract
No abstract provided.

Background information



This sample shows how to use the REST Service Call Builder that was introduced in IBM® WebSphere® Portlet Factory 6.0.2 to invoke REST style services and display the results.


Sample description


The following describes the sample models provided by this article.


DeveloperWorksProvider Model


This model acts as a service provider for serving up a "Web development" Atom feed from the IBM Developer Works site.
For more information about Developer Works Atom feeds, see: http://www-128.ibm.com/developerworks/rss/atomfeeds.html

This model is used by the DeveloperWorksConsumer model.


To fetch the Atom feed, this model uses the REST Service Call builder.

This provider model exposes the following Service Operation.


getArticles - This operation fetches an Atom feed that contains articles related to Web Development. The result of this operation is the entire Atom feed. Because the "Restructure Feed Data" input is checked, all the "entry" elements are wrapped by a parent "entries" element. Using this input makes it easier to use the View & Form Builder where you only want to display the repeated data contained in the "entry" elements of the feed. This operation is consumed by the DeveloperWorksConsumer model.


EclipseNewsProvider Model


This model acts as a service provider for serving up a "Community News" RSS feed from the Eclipse site. For more information about the Community News RSS feed, see: http://www.eclipse.org/home

This model is used by the EclipseNewsConsumer model.


To fetch the RSS feed, this model uses the REST Service Call builder.

This provider exposes the following Service Operation.


getNews - This operation fetches an RSS feed that contains Community News. The result of this operation is the entire RSS feed. Because the "Restructure Feed Data" input is checked, all the "item" elements are wrapped by a parent "items" element. Using this option makes it easier to use the View & Form Builder where you only want to display the repeated data contained in the "item" elements of the feed. This operation is consumed by the EclipseNewsConsumer model.


DeveloperWorksConsumer Model


This model acts as a service consumer for displaying content from a "Web development" Atom feed from the IBM Developer Works site. For more information about Developer Works Atom feeds, see: http://www-128.ibm.com/developerworks/rss/atomfeeds.html

This model uses the DeveloperWorksProvider model to fetch the Atom feed.


The View & Form Builder uses the getArticles! "entry" elements from the Atom feed results. The "entry" elements are wrapped in an "entries" element. Using this option makes it easier to use the View & Form Builder where you only want to display the repeated data contained in the "entry" elements of the feed.


This model uses the /WEB-INF/samples/data_definitions/devworks_articles.xml RDD file to control the fields displayed by the View & Form Builder. The RDD file is specified in the Service Consumer Builder.


EclipseNewsConsumer Model


This mode l acts as a service consumer for displaying content from the "Community News" RSS feed from the Eclipse site. For more information about Developer Works Atom feeds, see: http://www-128.ibm.com/developerworks/rss/atomfeeds.html

This model is uses the EclipseNewsProvider model to fetch the RSS feed.


The View & Form Builder uses the getNews service operation to fetch the "Community News" RSS feed results.


This model uses the /WEB-INF/samples/data_definitions/eclipse_news.xml RDD file to control the fields displayed by the View & Form Builder. The RDD file is specified in the Service Consumer Builder.


Figure 1. This shows the running EclipseNewsConsumer Model
 Screenshot of the Running EclipseNewsConsumer Model


Figure 2. This shows the running DeveloperWorksConsumer Model
 Screenshot of the Running Developer WorksConsumer Model


Notes on running the sample and prerequisites

  1. You must be using Portlet Factory 6.0.2 or higher.
  2. Download the sample ZIP file and import it into a project using the File, Import, WebSphere Portlet Factory Archive command.
  3. Open the DeveloperWorksConsumer or EclipseNewsConsumer model and run it.

expanded Article information
collapsed Article information
Category:
Samples and Techniques for Web Experience Factory, Web Experience Factory, Samples and Techniques,
Tags:
Code samples, Data access, REST

This Version: Version 23 August 4, 2010 11:56:34 AM by Keshi Dai  

expanded Attachments (3)
collapsed Attachments (3)

 


File TypeSizeFile NameCreated On
application/x-zip 11 KB rest_service_call_sample.zip 11/7/08 9:33 AM
image/jpeg 23 KB pic1.jpg 11/7/08 9:33 AM
image/gif 33 KB pic2.gif 11/7/08 9:33 AM
expanded Versions (23)
collapsed Versions (23)
Version Comparison     
Version Date Changed by               Summary of changes
This version (23) Aug 4, 2010 11:56:34 AM Keshi Dai  
22 Jan 20, 2010 8:09:31 AM Rob Flynn  
21 Jan 15, 2010 8:14:55 PM Rob Flynn  
20 Dec 31, 2009 9:00:04 AM Rob Flynn  
19 Jan 19, 2009 10:56:14 AM Rob Flynn  
18 Nov 7, 2008 9:58:26 AM Craig Lordan  
17 Nov 7, 2008 9:52:00 AM Craig Lordan  
15 Nov 7, 2008 9:36:57 AM Craig Lordan  
15 Nov 7, 2008 9:36:57 AM Craig Lordan  
14 Nov 6, 2008 1:35:40 PM Rob Flynn  
13 Nov 6, 2008 1:21:16 PM Jonathan Booth  
12 Oct 27, 2008 2:25:22 PM DeAnna Steiner  
10 Sep 5, 2008 8:19:48 AM DeAnna Steiner  
9 Jun 26, 2008 3:20:49 PM Rob Flynn  
9 Jun 26, 2008 3:20:49 PM Rob Flynn  
8 Jun 23, 2008 10:43:47 AM Rob Flynn  
7 Jun 19, 2008 12:27:08 PM Rob Flynn  
6 Jun 19, 2008 12:26:55 PM Rob Flynn  
5 Jun 16, 2008 12:11:10 PM Rob Flynn  
4 Jun 13, 2008 12:42:58 PM Rob Flynn  
3 Jun 13, 2008 10:03:57 AM Rob Flynn  
2 May 30, 2008 10:44:07 AM Rob Flynn  
1 May 22, 2008 9:50:27 AM Rob Flynn  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use