Does the JSON-RPC require you to have RO SDK to use it?

Hello,

I have an RO SDK service that was built using the SOAP message type and http channel. I’m using SOAP so that anyone can use it without necessarily having RO SDK.

One of my customers is asking if we can do JSON instead of SOAP. If I add the JSON message type would they be able to make API calls to it? Or would they need to have RO SDK? And if they can make calls to it then do you have any examples?

Hi,

You can use HttpAPI technology.
it accepts swagger (or OpenAPI) requests and generates json output.

pls check Adding HttpAPI to a Server (.NET) article - it shows how to modify existing RO SDK server.

You don’t need RO SDK for consuming HttpAPI requests.

The documentation says that this was introduced in RO SDK 9.3, but the application is current running RO SDK 6.x. This is due to the fact that the device is running on the Windows CE operating system and I can’t get anything newer than RO SDK 6.x to run on the Windows CE OS.

If I could get a newer version running on Windows CE then that looks like it would be perfect. It also looks like something that I can use for a new desktop application that I’m working on as well.

Hi,

you can manually generate JSON requests like

{
   "version" : "1.1",
   "method" : "MegaDemoService.Sum",
   "params" : {
               "A" : 1,
               "B" : 2
              }
}

and parse JSON responses like

{
  "version" : "1.1",
  "result" : {
               "Result" : 3
             }
}

Perfect!

Thank you very much