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.js Error, ECONNREFUSED when trying to post to Limesurvey RC API

I'm getting an ECONNREFUSED error (shown below) when trying to make a POST request with the request module to my server's limesurvey remotecontrol API. Is there something I'm doing wrong? Code is below error. Edit: fixed the space between the…
yungStuck
  • 21
  • 5
0
votes
0 answers

Trouble with addAttachment method using JSON-RPC in Confluence

I haven't used REST services in combination with JSON-RPC that much, so I could use some help here. I am trying to add an attachment to a page in Confluence using a JSON-RPC call. I am testing my calls using soapUI 5.0.0. The URI of my REST call…
Crow74
  • 51
  • 1
  • 7
0
votes
1 answer

ZF2 JSON-RPC - Error response, data parameter, how to access?

Let's say I have an RPC call for adding colors. A user can only add colors once. If they add one a second time, I want to return an error response that tells them they screwed up, and why. The JSON-RPC error response describes an error object that…
0
votes
1 answer

ZF2: Using JSON-RPC without MVC?

It is stated in the ZF2 documentation, as well as by Matthew Weier O'Phinney's blog, that: Many developers want to stick this in their MVC application directly, in order to have pretty URLs. However, the framework team typically recommends…
0
votes
1 answer

Listening for changes in a MySQL Database that is accessed from a PHP web service

My sceneario is like this: I have some tables in a MySQL Database, I connect to it using a PHP web service by JSON-RPC 2.0 protocol. I show the data of those tables on a Desktop App, coded in Java, it's like an Adminitration Tool that is used to…
lordscales91
  • 423
  • 1
  • 8
  • 22
0
votes
1 answer

python jsonrpc error Bad Gateway

I am trying to understand JSON rpc in python.My http server looks as below. #!/usr/bin/env python # coding: utf-8 import pyjsonrpc def add(a, b): """Test function""" return a + b class…
liv2hak
  • 14,472
  • 53
  • 157
  • 270
0
votes
1 answer

Encoding A Java Object (POJO) into a JSON String in GWT

Objective I'd like to use JSON-RPC to send this on the clientside: {"jsonrpc":"2.0","method":"RegisterValues","params":[["Planets","Stars"]],"id":2} My Attempt Using Resty-GWT: public interface testService extends RestService { …
fiz
  • 906
  • 3
  • 14
  • 38
0
votes
1 answer

Adding arguments to JSON RPC callback function

NOTE: question edited for clarity 4/5/2014 I am making a method call using JSON RPC that requests data from the server. When that data comes back it fires a callback function. JSON RPC callback functions are automatically supplied output and…
sage88
  • 4,104
  • 4
  • 31
  • 41
0
votes
1 answer

Is There an Easier Way to Post this Message with RestyGWT?

The Problem Currently I'm replacing GSON with Resty-GWT to make my JSON-RPC calls due to various annoyances with GSON. It works exactly how I want it to but I can't figure out how to send my messages other than in a String: String names_ =…
fiz
  • 906
  • 3
  • 14
  • 38
0
votes
1 answer

What Does the Equivalent Client Side RestyGWT Look Like Following This Simple GSON Example?

The Problem Due to several problems encountered with GSON (GWT JSON-RPC), I'd like to switch to Resty-GWT. The following example showcases my old setup, then below is my attempt at transferring. The Data This is the JSON data sent from the proxy I…
fiz
  • 906
  • 3
  • 14
  • 38
0
votes
0 answers

Node with Sails.js change hook behaviour OR create new blueprint

In Sails.js the Rest blueprint is handled by the hooks on sails/lib/hooks/controller . How can one change the hook behaviou or make a new bluePrint behaviour without medling with the core? I want to make a JSON RPC 2.0 Hook and replace rest with it.
FabioCosta
  • 3,069
  • 6
  • 28
  • 50
0
votes
0 answers

PHP JSON-RPC not working - no errors

Andy
  • 373
  • 1
  • 7
  • 24
0
votes
1 answer

json-rpc server over nancy

We've started using nancy in our open source project; https://github.com/CoiniumServ/coinium (a stratum/getwork/gbt pool server). We basically need to support api calls over json-rpc. We're getting request similar to this; HttpWebRequest…
HuseyinUslu
  • 4,094
  • 5
  • 33
  • 50
0
votes
1 answer

Uncaught TypeError: Cannot call method 'setup' of undefined in jquery jsonrpc client

I need to call a invoke a remote rpc procedure via jquery. I user jquery-json plugin for this purpose. >>https://github.com/datagraph/jquery-jsonrpc/
Kasinath Kottukkal
  • 2,471
  • 4
  • 22
  • 28
0
votes
0 answers

Google flight RPC JSON response

I am trying to get the JSON response from the Google Flight page.I looked into the following tutorial which explains how to get it link.So I created an HttpPost request in Android and added all the required headers I got from the Google chrome to…
luckysing_noobster
  • 1,933
  • 5
  • 24
  • 50