0
votes

Looks like there is not much documentation available regarding how to develop a Rest consumer from Domino(8.5.3 in our case). I would like to know various options available to achieve this. I am a Java developer, and would also like to know if Domino lotusScript can somehow take advantage of Java agent to call the Rest api. I know Java agents can be called from Domino, but I am not sure of exact process/API to achieve this. Anyway please let me know some standard options available, for developing the Rest consumer from Domino 8.5.3 .

Thanks

2

2 Answers

0
votes

I think most simple way would be to deal with agents (Java or LotusScript - does not matter, but I would go with Java).

To trigger agent - here is an URL example

http://Host/Database/AgentName?OpenAgent&param=1

Read more about URL commands for opening agents, forms, and navigators

Domino lotusScript can somehow take advantage of Java agent to call the Rest api.

I do not think so. I would recommend to use Java.

The only benefit you may get from using LotusScript - it may run faster little bit. Each time you run java agent - it extract all related libraries to memory/disk (not sure) and only than start to run.

0
votes

If your LotusScript will be running on a Windows machine, you can use WinHTTP to make the necessary URL connections to access a REST service. That won't give you any help parsing and formatting data, though.

A better alternative would probably be to write your code that interacts with the REST service as a Java class, and then use LS2J to give your LotusScript code a way to work with the Java objects and methods.