I would like to implement a graphical user interface on the basis of ExtJS version 4. The web service I want to use provides data as result sets of jsonrpc-2.0 calls.
I cannot find anything in the docs on how to do this. Do I use AJAX proxy? If so, how do I generate the proper POST requests for jsonrpc?
edited to clarify: I already have a means to do jsonrpc2 requests to the server and the server answers with a proper response. So I guess I really need a store that calls custom functions and defines callbacks or some such. An Invocation of that mechanism looks like:
jsonrpc2.call("method_name", parameterObject,
function(success, data_or_error_object) { /* callback code */ })
with method_name like “create”, “update”, etc., the parameterObject is mostly a normal javascript object with named parameters.
Maybe you should look at
Ext.Direct. While it is not exactly what you’re looking for, it is very similar toJSON-RPC, so looking at the source code forExt.data.DirectStoreshould give you some hints about how you can implement aJSONRpcstore.