S.M. Sundaram.
S.M. Sundaram.

Reputation: 11

How to modify the webservice provider output format from xml to JSON in Lotus notes 8.5?

Greetings!

I am writing a provider webservice (using WS provider designelements) in lotus notes 8.5. Presently it outputs the data in xml format. But the Webservice consuming system is accessible through mobile browser and needs the output in JSON format. How to modify the output format from xml to JSON?

Regards, Sundar.

Upvotes: 1

Views: 1033

Answers (1)

Simon O'Doherty
Simon O'Doherty

Reputation: 9359

Web services is SOAP in Domino only. If you require a REST service there are number of things you can do.

  • Create a normal web agent and write your output in JSON.

  • Use the URL shortcuts to read a document/view in JSON (R7.02 onwards). For example:

    http://server.my.lan/database.nsf/viewName?ReadViewEntries&outputformat=JSON

  • You can use the Domino Data Services (R8 onwards).

  • Use XPages JSON RPC component. Part of ExtLib (UP1/openNtf R8.5.x, built in R9). Some details on it here. Also an example here.

Personally I'd go with the XPages JSON RPC component, as it offers the best level of control and ease in security.

Upvotes: 4

Related Questions