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

JSONRPC on Android does not POST

I have the following code: JSONObject jsonRequest = new JSONObject(); jsonRequest.put("id", 1); jsonRequest.put("method", "mymethod"); entity = new JSONEntity(jsonRequest); HttpPost request = new…
Pim Reijersen
  • 1,123
  • 9
  • 33
0
votes
3 answers

How get the current endpoint info in an IOperationBehavior attribute in a WCF service?

I have a service exposing 2 endpoint and I would like to apply message formatting to only one of the endpoints. To do that I am looking to capture the endpoint name in order to apply the MessageFormatter only for this specific endpoint. This is the…
Almeida
  • 46
  • 1
  • 5
0
votes
1 answer

RPC on android causes GC_EXPLICIT

I need to synchronize my local sqlite database with a remote mysql database. I'm testing different XMLRPC and JSONRPC projects to do so. I send a packet containing all entries that arn't synced yet for each table. When these RPC projects are parsing…
Pim Reijersen
  • 1,123
  • 9
  • 33
0
votes
1 answer

How to get host list by host groupid in zabbix?

I am trying host.get API to get all host of an host groupid. I am using the jsonrpc as below. { "jsonrpc": "2.0", "method": "host.get", "params": { "output": ["host"], "groupids": ["10"] }, "auth":…
Thien Hoang
  • 143
  • 1
  • 17
0
votes
1 answer

(async) JSON RPC API performance optimization

I have to make a JSON RPC API that will have to support a big traffic and manage a postgreSQL database. To do it I chose 'http' for the server and pg-promise for the database. My problem is that I have some difficulty understanding and using the…
Firlfire
  • 413
  • 1
  • 6
  • 14
0
votes
1 answer

IronPython based web-service

I want to use IronPython to develop the logic behind a JSON-RPC web-service project. My questions are: Can I develop without using Visual Studio? What build system should I use (favorably not XML-based)? How does deployment under IIS work (what…
akosch
  • 4,326
  • 7
  • 59
  • 80
0
votes
1 answer

How to call JSON RPC method inside controller on Lambda AWS project

I need an help. My problem is making api with JSON RPC 2.0 on .net core 2.0 project. So, i've installed this https://github.com/edjCase/JsonRpc plugin. And set ItemsController like this: namespace AWSTestLambda.Controllers { …
Mr. Developer
  • 3,295
  • 7
  • 43
  • 110
0
votes
1 answer

Unable to run nodejs script for a json rpc test case automation

I am trying to run a nodejs script written for a json rpc test case automation. However, I keep getting the error: npm run test\resources\nv-jsonrpc-tests\pingServer.spec.js error missing script:…
Neha C
  • 1
0
votes
1 answer

Is there a way to make jayson npm JSON-RPC calls from within nest.js?

I have looked at previous similar questions but nothing comes close, so I am hoping someone can help me here. I want to make a jayson npm JSON-RPC (with authentication in the request object) call from within a generic nest.js application to an…
0
votes
1 answer

How to fix JSON-RPC error code 591 with swift

I am making an iOS app with Swift that I want to use with a server that has JSON-RPC (server is not owned by me). I have been able to login to the server and save the cookies which I know are working because of being able to view content on other…
Evan
  • 41
  • 7
0
votes
2 answers

Unit testing Zend_Json_Server

Is there a possibility to unittest a Zend_Json_Rpc server? Or should I much rather unit test the underlying class that the Json server wraps?
Sebastian Hoitz
  • 9,343
  • 13
  • 61
  • 77
0
votes
0 answers

Whats the proper way to send a big file to an android device via json-rpc service?

im writing json-rpc service that provides an android app with some data. now i needa send a file that is huge enough to refuse the idea of encoding it to base64. more than that, the file link won't work either, cuz im not allowed to store files on…
0
votes
1 answer

Posting JSONRPC command to pyBitmessage using CURL

I'm trying to post a command to the pyBitmessage XML-RPC server in c++ with cpr Curl implementation. Like this: auto r = cpr::Post(cpr::Url{ "http://xxx:yyy@localhost:8442/" }, cpr::Body{…
0
votes
1 answer

How to put mongodb sessions in creachadair/jrpc2 Handlers

I want to build a microservice that uses jrpc2 and mongodb to manage small IoT devices. These are the libraries in question: https://godoc.org/bitbucket.org/creachadair/jrpc2 https://godoc.org/github.com/globalsign/mgo The problem is, being rather…
randomshinichi
  • 420
  • 5
  • 15
0
votes
0 answers

jsonrpc4j:java.net.SocketException: Unexpected end of file from server

this is my code, i want to use jsonrpc4j(1.0 version) to get the OVSDB message public static void main(String[] args) throws Throwable { JsonRpcHttpClient jsonRpcHttpClient = new JsonRpcHttpClient(new URL("http://192.168.1.177:6632")); …
Smile
  • 17
  • 7