How to use a RESTful web service in Lotus Notes

Has anyone written a client in Lotus Notes to use the RESTful web service? If so, what code examples did you use? I'm not sure where to start, as there are not many examples on the Internet at present.

My ultimate goal is to have some Lotusscript (or alternatively Java or even @Formula) that the Notes client application can use to make regular GET, POST, PUT and DELETE calls to the RESTful web service. I will store the results in .xml files on the client computer.

Thanks!

+6
source share
1 answer

The Geocoding class here does not implement all the verbs, but it gives you the basis of a COM-based approach, assuming, re speaking of Windows clients.

OP Edit (Example):

Dim httpObject As Variant Dim httpURL As String Dim response As String Dim returnCode As String Set httpObject = CreateObject("MSXML2.ServerXMLHTTP") ' use MSXML object httpURL = "http://" & yourWebServiceURL Call httpObject.open("GET", httpURL, False) response = Left$(httpObject.responseText,16000) returncode = GetGeoValue("code") ' eg 200 for success 
+4
source

Source: https://habr.com/ru/post/921296/


All Articles