Is it possible to retrieve JSON-formatted data from a Web Service Provider Function within Lotus?

Recently diving into Lotus Web Service, I've developed a Web service provider with two functions: EmployeeProfile and EmployeeLogin. Each function requires specific parameters to carry out its logic. My goal is to return data in JSON format from these functions. Is there a method to accomplish this in either Lotus 8.5 or Lotus 9.0?

Any assistance would be greatly appreciated.

Answer №1

Welcome to the world of Lotus Web Services :-)

Initially, the integrated web services are all SOAP-based! This was during a time when JSON services were not as popular.

If you're interested in JSON based (REST) services, I recommend exploring DAS (Domino Access Services), particularly DDS (Domino Data Services). These are standard services that come ready to use. If these don't meet your requirements, you can create your own (using either LotusScript in agents - or preferably Java). However, delving into this topic is too extensive for me to cover here; but I can guide you toward an introduction to RESTful services:

If you attend EngageUG in Belgium next week, you will get to see the updated version of that discussion :-)

/John

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Using multi-dimensional JSON arrays for posting requests through Ajax

Is it possible to serialize HTML fields in a multi-dimensional array format for AJAX post transmission? I tried using serializeArray but it only formats the first level of the array. The data I need to serialize includes name/value pairs like: name="cus ...

Is it true that the Haskell Text.Json library is capable of reading Rationals but not writing them?

After attempting to parse a JSON file containing a floating point number, I noticed that the Text.JSON package returns the number as a JSRational. This means I can use readJSON on a JSRational. However, I encountered an issue when trying to write rationa ...

Having trouble with Ajax retrieving the updated JSON file version

I'm pretty new to coding and terminology in general, so I've done my best to simplify my code, although it might still have redundancies. Appreciate your patience in advance. My task involves using an ajax and php script to write data to a file ...

Generating a fresh GeoJSON LineString by utilizing the information from JSON items and incorporating a certain property

I need to combine multiple JSON objects into a GeoJSON feature collection with LineStrings Here are some example poorly formatted JSON objects: {"lat":16.0269337,"lon":40.073042,"score":1,"ID":"13800006252028","TYPES":"Regional","N2C":"2","NAME":"Strada ...

How can I retrieve object data and store it in a variable using PHP?

I've gone through a lot of responses, but I'm still struggling with something. I have an object that fetches data from a file and formats it into an array. Now, I'm trying to pass this data into a variable in the calling file so that I can m ...

Just starting out with d3 and struggling to display a graph using JSON data

I'm completely new to using d3 and struggling with creating a line graph from JSON data. Within my ReportBucketDAO.java file, I am generating JSON output based on my database records. while (rs.next()) { String currency = rs.getString("currenc ...

Retrieving Image from Link for Django Web Application

My JSON file contains the following data: "Product_url": "https://www.amazon.in/Samsung-Galaxy-Storage-Additional-Exchange/dp/B07PQ7CRBH/ref=sr_1_11?keywords=phone&qid=1563166792&s=electronics&smid=A14CZOWI0VEHLG&sr=1-11&quo ...

Trouble integrating JSON data with Newtonsoft.Json library in WPF applications

Currently, I am working on extracting data from the office365 API that returns responses in JSON format. My aim is to store specific data such as Id and DisplayName into variables for further use, but I seem to be struggling with the process. I came across ...

Ruby Guide: Parsing JSONP and Storing JSON Data in a Database

Looking to extract and store JSONP data in a database using Ruby or Ruby on Rails? Here's the scenario: Let's assume you have a JSONP URL like, This JSON format isn't typical, so how can you parse it in Ruby/Ruby on Rails and then save the ...

Difficulty with Horizontal Mousewheel Scrolling

Struggling to implement a horizontal scrolling feature (via mousewheel) for both containers in the code below. I want this feature to be easily applied to any future container creations as well. <body> <style> #container { display: flex ...

Preserve the existing value and then check it against the updated value of a variable within JavaScript

I utilized an API that supplies me with information in JSON format, retrieved the price of a specific currency, and presented it on a screen using JavaScript. I encapsulated this process within a function that dynamically updates the information at set int ...

Problem with Agile Carousel and thumbnail component

I have incorporated the Agile Carousel plugin into my website to create multiple slideshows. The first slideshow at the top is working fine, but I am experiencing an issue with the carousel in the "About" section at the bottom. While I have successfully se ...

Tips for displaying an object's properties using ngfor?

<div *ngFor="let article of articleList; let i = index"> <div class="item"> <div class="image-holder" style="background-image: url(https://uniqueblog.com/images/ninja-1.jpg)"&g ...

Which HTTP method is recommended for retrieving a JSON object from my REST API and sending a JSON object back in response?

As I embark on developing my inaugural web API with MVC, a common question arises. Traditionally, POST and PUT are the HTTP methods typically employed to create or update a database via an API. However, in this case, my objective is more straightforward - ...

Using Ruby to convert JSON data into an array

This is an example of JSON code containing job and applicant information { "jobs": [ { "id": 1, "title": "Software Developer", "applicants": [ { "id": 1, "name": "Rich Hickey", "tags": ["clojure", "java", "immutability", "datom ...

Master the art of automatically formatting incorrect JSON using code in your Flutter project

I am currently facing an issue while trying to parse a json response. The problem lies in the presence of a trailing comma at the end of the response, causing errors during decoding. Is there a way to automatically format it from the code and remove the co ...

Is there a foolproof way to generate JSON data using PHP?

I am new to JSON and I have XML results that I want to convert to JSON format. The data is retrieved from a mySQL array. My issue arises when dealing with multiple nodes with the same name in the XML result, as shown below: <results> <result ...

Guzzle eliminates unnecessary request methods

Is there a way to streamline the redundant request method for writing? Currently, my code appears as follows: $response['slide'] = $this->_client->request('GET', 'artikelc/slidelimit',[ 'query' => [ ...

The type hint feature in JSON4S is not functioning as expected

Here is a code snippet that has been causing an issue: implicit val formats = DefaultFormats + FullTypeHints(Contacts.classList) val serialized = Serialization.write(List(Mail(field = "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cf ...

How to efficiently use ResponseEntity for user registration via POST method

Currently, I am in the process of constructing a REST API for my website's backend. One Controller that I have set up is for registering new Users: // CREATE A USER @PostMapping("/register") public ResponseEntity<?> createUser( @Request ...