Sunday, October 25, 2009

Exposing Lotus domino data to external systems

As a part of project work, I have been exploring alternate ways of exposing data from a Lotus Domino system.

Since Lotus Domino release 4.5, Domino comes with an inbuilt web-server and can respond to http requests with notes data from .nsf file. However this approach tightly binds data with the presentation layer, hence is not really efficient.

Starting Domino release 5.0.2, it adopted XML as the standard data exchange format and provided services (i.e http://server/notes db path/view name?Readviewentries..) to expose domino data in XML format for external systems to read and and present as they like.

With Domino Release 7.0.2, domino extended its services to expose Lotus notes data in JSON format. Without adding any complexity, you can simply specify that output format as JSON from the Readviewentries service. i.e .. extending the example in the previous section, you can get JSON format by calling this url..
http://servername/notes db path/view name?Readviewentries&outputformat=JSON..

In future posts i would evaluate Domino's XML vs JSON services..

No comments: