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
7
votes
2 answers

Best json rpc 2.0 library for Android

I have json rpc 2.0 server written in php. Currently I'm looking for a library that allows auto generation json rpc requests instead of using manual serialization. I found a bunch of different libraries and really don't know which is more…
overflowed
  • 185
  • 1
  • 1
  • 4
6
votes
1 answer

How to properly call JSON-RPC in Go?

I've been trying various configurations in order to call a simple JSON-RPC server for Bitcoin in Go, but didn't manage to get anywhere. In Python, the entire code looks like: from jsonrpc import ServiceProxy access =…
ThePiachu
  • 8,695
  • 17
  • 65
  • 94
6
votes
2 answers

JSON-RPC schema specification?

I'm thinking about trying to implementing a client for a particular json-rpc 2.0 service that could give a user some static typing guarantees. The API in question is very large, so actually writing a full-featured client by hand with all the…
m-rutter
  • 61
  • 1
  • 3
6
votes
2 answers

JSON/XML-RPC over TCP and Message Framing

I was thinking about JSON/XML-RPC over HTTP vs TCP. In case of HTTP, the HTTP request and response provide a message framing mechanism. However, since TCP is a stream, How are RPC messages framed? Does the RPC spec dictate that? Are there any other…
0cd
  • 1,729
  • 3
  • 15
  • 24
6
votes
1 answer

Unmarshal to a interface type

I have some code I've been dumped with and am actually stumped - I've worked with RPC and the JSON side of things before but I can't seem to get it to work over RPC when it works fine locally. package main import ( "log" "net" …
17Twenty
  • 287
  • 1
  • 4
  • 9
6
votes
5 answers

Consuming JSON-RPC web services in .NET

A business partner has suggested building a web services library with JSON-RPC rather that SOAP. (note they are not building in .NET necessarily, but I am) I am a potential consumer of this data. I've used JSON for client-based Ajax calls in the…
frankadelic
  • 20,543
  • 37
  • 111
  • 164
5
votes
1 answer

How to request data to JSON-RPC using python

I want to dump some data from a website with JSON-RPC but i cant get any information. I'm using post request and even simulating headers using python but seems like isn't enough... Im getting this error: {"error":{"code":590,"msg":"couldn't parse…
Motheus
  • 533
  • 5
  • 21
5
votes
2 answers

Which simple python based WSGI compatible jsonrpc library to use in server side for 'pyjamas'?

Recently, I came across pyjamas framework. It encourages radically different web application development approach by seperating the whole 'view' component of 'MVC' into some html + javascript (generated with compiled python), instead of using…
Titon
  • 139
  • 2
  • 7
5
votes
2 answers

How to set up a gorilla/websocket connection to acts as JSON-RPC client for browsers applications?

I have a frontend aplication, that connects to websocket and try to serve json-rpc2 to call client side from server. What is the best way to create *rpc.Client for it in a server application written in Go with "github.com/gorilla/websocket"? I…
fpawel
  • 309
  • 1
  • 3
  • 14
5
votes
3 answers

Python error: TypeError: getsockaddrarg: AF_INET address must be tuple, not int

When I launch my program: import bitcoinrpc import csv # docs at https://github.com/massanchik/bitcoin-python3 # docs at https://docs.python.org/3.3/library/csv.html user = 'user' password = 'password' port = '44555' host='127.0.0.1' access =…
user1540982
  • 71
  • 1
  • 8
5
votes
2 answers

Logging and replaying RealityServer Web Services requests

I am trying to diagnose a problem with my RealityServer application, however it is becoming very time consuming to manually reproduce problems using my applications user interface. Is there any way to log and replay the JSON-RPC Web Services…
Claudio Bredfeldt
  • 1,423
  • 16
  • 27
5
votes
1 answer

JsonRpc client in python

I am trying to use StanfordParser through python and i am using this implementation of it which is basically a remote server that responds to json requests from what i understand. They recommend the following implementation template for the client…
Evan
  • 1,683
  • 7
  • 35
  • 65
5
votes
1 answer

What is the correct content-type header for Json RPC v2 over HTTP?

I know that JSON RPC is not directly specified with HTTP, but I cannot find a proper solution for this. The question is, which content-type is correct: content-type: application/json content-type: application/json-rpc both? In the official (?) doc…
Patrick
  • 33,984
  • 10
  • 106
  • 126
5
votes
0 answers

TypeScript-enhanced SharedWorker PortMessage channel contracts

What is a good general design, taking advantage of TypeScript language features, for an RPC-style communication channel between Windows and Workers? SharedWorkers are JavaScript code listings that are run by the browser outside the context of a…
Jason Kleban
  • 20,024
  • 18
  • 75
  • 125
4
votes
2 answers

Sample code for JSON-RPC client in C#

I need a simple JSON-RPC 1.0 client in C#, preferably using .NET 2.0 or later. I checked out JRock 0.9 They have several samples including Yahoo reader, but the samples demo JSON, not JSON-RPC. I understand I could implement RPC part using any of…
Michael
  • 1,851
  • 4
  • 19
  • 26
1 2
3
44 45