As I understand the RemobjectSDK does implement JSON-RPC by TROJavaScriptHttpDispatcher and JSONMessage.
(Remark: JSON-RPC - Update to 2.0? that the supported spec 1.1 is outdated but this is not the major problem)
But the Today world is REST (and not JSON-RPC). See statements as
Now the logical question: REST versus JSON-RPC / what does RemObjectSDK support in the future?
IMO it makes no sense that each one tries to solve this problem by inheriting and adapting some functionality!
once in a while, people as about supporting REST in ROSDK. the problem is â what is REST? REST really is just a fancy name for HTTP. You call a URL, and you get some arbitrary data back, could be any format (XML, JSON), and any structure.
REST doesnât really fit into ROSDK, which abstracts methods calls at a much higher logical level, and i really wouldnât know what weâd implement in terms of REST support that isnât, really, just a plain HTTP client component â of which there are hundreds out there.
Maybe iâm missing something â and if so, iâd love to see a concrete example of how you see REST fitting in with what RO does (âdefine methods, implement them on the server, call them from the client, without worrying about the inbetween, too muchâ)
thank you for your detailed feedback. You are right on the REST consumption by a client. There are n-models without any useful definition (see http://en.wikipedia.org/wiki/Web_Application_Description_Language where a WSDL language equivalence was described but dropped later)
But I agree, there would be a lot to specify for the mapping:
a) what http-method shall be used (POST, PUT, GET) on an individual webservice method
b) which get-parameter shall go to the direct HTTP parameters and which shall be provided within a JSON structure.
I assume you suggest to follow the JSON-RPC route?
a) If yes: Any plans to support version 2.0 fully?
b) and how do I document the calls?
(I checked the Service Builder several times but have not found any Docu option showing the JSON-RPC syntax)
Could you briefly describe your original task (i.e. âwe have a real estate db and want to expose it to our clients via webserviceâ). Why are you considering json-rpc vs rest options but not SOAP for example?
Yes, there are such plans, but very low priority. The reality is, 99% of cases are RO SDK server + RO SDK client and 1.1 is enough for this. Also RO SDK for JavaScript supports binary message in all modern browsers. Speaking of non-RO servers/clients, SOAP message seems most used according to our support statistics, so maybe you should consider it.
Sorry, I donât quite understand the question. Service builder has âdocument this operation/document this parameterâ buttons on the service page and the text youâve entered there is properly stored in the RODL file.
Could you briefly describe your original task (i.e. âwe have a real estate db and want
to expose it to our clients via webserviceâ). Why are you considering json-rpc vs rest
options but not SOAP for example?
For one of our products (energy industry) the SOAP/WSDL-Server is nice but some elements should be provided as well via REST to be implemented into a Web-Server portal.
But actually itâs all âpoliticsâ. See https://www.codecentric.de/files/2011/05/web-services-versus-rest.pdf (sorry - itâs in German but summarizes exactly the situation of âevangelismâ). I certain environments we cannot decide what is technically the best but have to provide what the customer does want.
⌠SOAP message seems most used according to our support statistics, so maybe you should consider
for our own projects for sure. Again - itâs the area were the customer has some âREST-evangelistsâ in the architecture team.
Sorry, I donât quite understand the question. Service builder has
â>document this operation/document this parameterâ buttons on the service
page and the text youâve entered there is properly stored in the RODL file.
what I expected is a useful documentation for the âJSON-RPC client implementationâ. I get this more or less for the WebService implementation by âServiceBuilder â View â Docuâ. This document we use to deliver with our RemObject-Based WebServer. That includes examples as
Re REST and politics - got it. Unfortunately, I can only second Marc on this, REST doesnât really fit into RO SDK ideology.
Re JSON-RPC - suggested way for web apps is to use RemObjects SDK for JavaScript. http://wiki.remobjects.com/wiki/Calling_RemObjects_SDK_Servers_from_JavaScript
Of course, itâs possible to build JSON request object manually and send it via AJAX without using RO/JS but Iâm afraid we donât have user documentation on this.
I have same requirement for JSON-RPC call. I want to use base on ROServer services with ROClient and base on REST request application both (Now, I have a base on REST services application, but it is not RO client application).