heidloff.net - Building is my Passion

Use the XPages Social Enabler to access StackOverflow and Redmine

I’ve just contributed two snippets that show how to access StackOverflow and Redmine. In both cases you need the com.ibm.xsp.extlibx.sbt plugin from the extension library, but you don’t need to deploy the web security store database.

There is an API sbt.GenericService that you can use to access both Json or XML based REST services. Additionally there are convenience APIs sbt.XmlNavigator and sbt.JsonNavigator to easily parse the data.

This snippet shows how to access issues from Redmine.

Additionally the social enabler comes with the data sources restJsonData and restXmlData. The advantage of these data sources is that you get built in functionality like caching. For StackOverflow this was important since StackOverflow didn’t like the amount of requests issued from XPages.info.

The following snippet shows how to read the latest xpages tagged questions from StackOverflow. It also uses a busy indicator that is shown while reading the data.

Featured Blog Posts
The postings on this site are my own and don’t necessarily represent IBM’s positions, strategies or opinions.
Trending Tags