Questions tagged [json-rpc]

JSON-RPC is a standard JSON data-format based (r)emote (p)rocedure (c)all protocol.

See http://json-rpc.org/ for specification and implementations for various languages.

JSON stands for JavaScript Object Notation. It is a text-based lightweight data-interchange format. See http://www.json.org/ for details.

RPC stands for remote procedure call, which is a family of protocols. See the Wikipedia article Remote procedure call for origins, current variations and applications.

673 questions
0
votes
1 answer

Should idempotent service respond with error after first call?

I'm writing service layer for DDD app. Services are exposed through JSON-RPC over WSS. I'm not sure how to respond to redundant calls to service. Some facts about the system: All requests must be completed within specific time or timeout exception…
0
votes
1 answer

Call JSON-RPC method via URL using jQuery

I need to reference a JSON-RPC method by the URL and wondering how to do it or if you can do it. I want to do it this way because I want to make the call inside of a $.post using jQuery.deferred(). Look at this example to see what I am trying to…
Steve Zavocki
  • 1,840
  • 4
  • 21
  • 35
0
votes
1 answer

How to rewrite python jsronrpc2 application to be able to function as wsgi app

I am having some problems understanding how a application written in python jsonrpc2 is related to a wgsi application. I have a json rpc test application in a file called greeting.py It is a simple test case def hello(name=None,greeting=None): …
harijay
  • 11,303
  • 12
  • 38
  • 52
0
votes
1 answer

xpages JSON-RPC Service handling response from callback funciton

I have a slickgrid screen (on regular Domino form) wherein user can select and update some documents. I needed to show a pop-up displaying status of every selected document so I created an XPage. In my XPage I am looping through selected documents…
Arun
  • 229
  • 3
  • 14
0
votes
1 answer

GET request with httr returns JSON error 302, wrongly formatted method?

I am trying to write a script in R to download data from a JSON-RPC API. Unfortunately, this API is for a private company service and I can't disclose its name or URL. The error should be reproducible with almost any JSON-RPC API though. The API's…
roccobarbi
  • 300
  • 1
  • 11
0
votes
2 answers

How to store blocks in Objective C?

I started writing a simple JSON RPC TCP library in Objective C. I have a method that invokes a RPC Method: - (void)invokeMethod:(NSString *)method withParameters:(id)parameters requestId:(id)requestId success:(void…
ePirat
  • 1,068
  • 11
  • 20
0
votes
1 answer

Zabbix API behavior with no "id" specified -- no JSON in response

I am writing JSON-RPC code to talk to the Zabbix API. I have noticed that if I omit the "id" from the request, I get back a response with zero-length content. If I specify any "id" value, the content is a JSON object as documented in the API…
steveha
  • 74,789
  • 21
  • 92
  • 117
0
votes
1 answer

How do I filter json-rpc requests using stuff like wireshark?

I've been trying to filter my requests using wireshark but so far to no avail. I already know how to filter xml-rpc requests using wireshark. I followed this tutorial. I trust that to filter json-rpc requests, I should also follow a similar route? I…
0
votes
1 answer

Android SSLContext trusted certificates Not Working on API 8

I have the following code for configuring and SSL Connection and instantiating a JsonRpcHttpClient using the Jsonrpc4j implementation: public static void createJsonRpcClient(Context ctx) throws NoSuchAlgorithmException, KeyStoreException,…
lordscales91
  • 423
  • 1
  • 8
  • 22
0
votes
1 answer

flask service on heroku

I'm trying to figure out how to run a web service on heroku using flask and JSONRPC. I would like to get to a point where, from my desktop I can do: from flask_jsonrpc.proxy import ServiceProxy service =…
hdd
  • 291
  • 1
  • 4
  • 9
0
votes
2 answers

Android update Activity from a Service

I'm so lost with all that workflow of notifications and services in Android. My sceneario is this: I have an Android application that communicate to a MySQL database through a web-service using JSON-RPC. The data retrieved from the service will be…
lordscales91
  • 423
  • 1
  • 8
  • 22
0
votes
2 answers

how to POST json data and response json in AFHTTPRequestOperationManager

I use AFHTTPRequestOperationManager for query data from service, but i want set data for POST json data parameters to service. Thank you for answer.
Love Thailand
  • 769
  • 10
  • 12
0
votes
1 answer

XBMC GetInfoLabels command not working

got a quick question about the JSON XBMC API. I want to use the GetInfoLabels command to get a lot of information about the system on my webpage. But I can't figure out how this command works. I tried the…
Reggi
  • 402
  • 8
  • 21
0
votes
1 answer

Make jquery datatables to extract and use a given part of a returned json from an Rpc server

I have a json rpc server that serves and rerurns json in the mode given including id results and jsonrpc keys ofa json string { jsonrpc: "2.0" id: "1" result: "{"iTotalDisplayRecords":"2","iTotalRecords":"2","aaData": …
Gideon Maina
  • 849
  • 10
  • 25
0
votes
3 answers

Convert form elements to json and POST them to a server including some of them as a group of params

I have this form
Username:
Current password:
New password:
Gideon Maina
  • 849
  • 10
  • 25