3 ms·
So how does this compare to XML-RPC? I see that it is using JSON instead of XML. > Support currently exists for implementing web RPC services in Java, and con
by leejoramo 11y ago
So how does this compare to XML-RPC?
I see that it is using JSON instead of XML.
> Support currently exists for implementing web RPC services in Java, and consuming services in Java, Objective-C/Swift, or JavaScript.
While I may personally feel that JSON is a better format than XML, there are a implementations of XML-RPC for almost all languages and platforms which is a huge advantage.
- gk_brown 11y agoWebRPC is a lot lighter than XML-RPC (or JSON-RPC). It's really just a thin layer on top of HTTP. Arguments are passed in the query string (or as form parameters, if POSTing), and the response value is returned directly as JSON. There's no body or envelope to parse. This makes WebRPC services really easy to consume by any client that supports HTTP and JSON (which is pretty much most platforms). WebRPC services are also really easy to test, since you can execute a method and get the results back simply by typing a URL in your browser.