Community articleProgramming Domino Data Service
Added by IBM contributorIBM on October 3, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Programming access to the Domino® Data Service is through standard HTTP and HTTPS protocols, and JSON standards.

In Java™, use java.net.HttpURLConnection to establish network connections for getting and sending data. In JavaScript™, use available libraries to obtain a connection. For example, server-side JavaScript for XPages allows you to call through to java.net.HttpURLConnection. Dojo supports the dojo.xhrGet function and dojox.data.JsonRestStore.

Regardless of the programming language, transmit data as strings in JSON format.


Sending a GET request in JavaScript
Here is sample code to send a GET request to the Domino Data Service and read the response.

Sending a POST request in JavaScript
Here is sample code to send a POST request to the Domino Data Service.

Sending requests in Java
Here is sample code that uses HTTP and JSON libraries to send GET, POST, PATCH, and DELETE requests to the Domino Data Service and read the responses.

Displaying a GET request in a Dojo grid
Here is sample code to send a GET request to the Domino Data Service and read the response via a Dojo object.

 

Related concepts
IBM Domino Access Services overview
Administering IBM Domino Access Services overview
Accessing IBM Domino Access Services
Troubleshooting IBM Domino Access Services