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

node server with json rpc for angularjs website

how do I setup a server json file for node and an angularjs website as client? My client is a website which is created with angularjs. How do I setup this to send requests to the server and get response from there? My server is a node server. How do…
0
votes
1 answer

Objective-C JSON-RPC Request issue

I have a problem with my JSON-RPC query. NSString *jsonString = @"{id:1,method:getHolidays,jsonrpc:2.0}"; NSString *requestString = [NSString stringWithFormat:@"%@",jsonString,nil]; NSData *requestData = [NSData dataWithBytes: [jsonString…
Darkdrummer
  • 301
  • 1
  • 2
  • 8
0
votes
2 answers

java - do json remote procedure call(RPC) from client

I'm working on a java application. I need to call a remote api method. Suppose I have this information: remote_ip, remote_port, remote_method_name and some key-value data to post. I need to post my data to remote server through TCP protocol. I…
hamed
  • 7,939
  • 15
  • 60
  • 114
0
votes
1 answer

Should I move from REST-HTTP to Rabbitmq-RPC for synchronous call?

I read lots, many people suggested does not use AQMP-RPC for synchronous call. My response data size is 4MB, so, REST-HTTP taking too much time to send data from server to client. So, we decided to move RPC. Can someone please suggest, should I…
vidur-88
  • 68
  • 6
0
votes
1 answer

REST API + hacks/REST + RPC hybrid. Do I get it right?

TL;DR How to mix REST requests with some non-REST requests in SPA(frontend/backend)? Or might be I just get REST wrong? We are planning new API for SPA and mobiles(plus probably some 3rd parties). There will be some requests which, I suppose, can't…
Jevgeni Smirnov
  • 3,787
  • 5
  • 33
  • 50
0
votes
0 answers

json rpc over websocket javascript client to use in qooxdoo

I've a json rpc server with websocket transport only. Does any one knows about a javascript library that implement json rpc over websocket that I can use? Regards,
Salih
  • 43
  • 7
0
votes
1 answer

Qooxdoo tested json rpc javascript websocket client

I'm starting a new project and I'm using qooxdoo js framework. I'm running against a json rpc 2.0 server based on websocket communication. I wonder if there's already a tested json rpc client for qooxdoo or should I pick any implementation like…
Salih
  • 43
  • 7
0
votes
1 answer

In JSON-RPC 1.0, can a response object's "result" member be an Array?

Section 1.2 of the JSON-RPC 1.0 specification says, "result - The Object that was returned by the invoked method. This must be null in case there was an error invoking the method." This suggests that the result should be either an Object or null.…
JKSH
  • 2,658
  • 15
  • 33
0
votes
2 answers

C: How to parse a value from Json request?

I am attempting to use the cJSON library, written by Dave Gamble, to read in the following JSON request: {"id":"8358441244995838759","jsonrpc":"2.0","method":"addext", "params":["
Neeraj
  • 13
  • 6
0
votes
1 answer

Error creating pytheapp for Ethereum on OSX

I am trying to install pyethapp on OSX but get an error right at the end ""python setup.py egg_info"". Any suggestions? c233:json-server-api justinstaines$ pip install pyethapp Collecting pyethapp Downloading pyethapp-1.3.0-py2.py3-none-any.whl…
Justin
  • 66
  • 4
0
votes
1 answer

rpc.ServerCodec Still Serving?

I was performing some RPC tests, and stumbled across a problem I can't seem to solve. In my testing I create three separate RPC servers, all of which I try to close and shutdown. However upon performing my last test (TestRpcCodecServerClientComm),…
Wolf
  • 52
  • 6
0
votes
1 answer

Is it possible to execute system.run[] with Zabbix 3.0 JSON-RPC API?

I'm trying to remotely stop/start services using systemctl inside Zabbix's system.run[] request/item but it doesn't seem to work. I'm using Zabbix 3.0 JSON-RPC API and my JSON looks like this: { "jsonrpc": "2.0", "method": "item.get", …
0
votes
1 answer

Is there a way to send a series of jobs to rabbitMQ?

I have jobsnamed A, B, C, D. Job B has to start after job A finished. So the order of jobs should look like this A->B->C->D. I want to scale number of workers for A, B, C and D indepently. Is there a way to implement this using RabbitMQ, I am…
Jan Grz
  • 1,373
  • 14
  • 18
0
votes
1 answer

can't retrieve data from OdooRPc

I am trying to retrieve data from the database using jsonRpc using odoo api but i got the erro like "HTTP/1.1 GET /projects" - 404 Not Found" here is my code snnipet python script which is used to manipulate the data class projects: def…
0
votes
1 answer

RPCError: dictionary update sequence element #0 has length 1; 2 is required on python

i wanted to insert new data into porstgresql using odooRPc i am having error like below RPCError: dictionary update sequence element #0 has length 1; 2 is required my python script code is : def POST(self): data = [] …