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

simultaneous requests in django

i have two Django projects. i send/receive data via JSON-RPC between this two projects. my problem is that i started a request in project-1 and call a method in project-2, in the called method of project-2 i call again a method in project-1. my…
Fcoder
  • 9,066
  • 17
  • 63
  • 100
0
votes
1 answer

Django JSON_RPC doesn't work

i want to create a simple Django(1.3) project that uses JSON-RPC. i use this implementation: django-json-rpc and this is my project files: urls.py: from django.conf.urls.defaults import patterns, include, url from myapp.views import * from jsonrpc…
Fcoder
  • 9,066
  • 17
  • 63
  • 100
0
votes
1 answer

Proxy Classes for JSON-RPC web service of web2py

I have developed JSON-RPC web service in Web2py. It operates on objects of classes which are defined by me. It accepts two objects and returns a result of custom defined type. I want to generate proxy classes to communicate with this web service. I…
gliese581g
  • 433
  • 8
  • 21
0
votes
0 answers

Json-RPC, PHP curl, and Bitcoin getblocktemplate request

Thanks for stopping in :) I break things, fiddle around, and then try to put them back together. It is how I seem to learn best. (One of) My recent obsession(s) has been with crypto-currency. Since I have a little bit of knowledge working with API's…
Samantha P
  • 543
  • 4
  • 12
0
votes
1 answer

Exception message in Servlet

I have JSON-RPC Service (a class with methods invoked using Reflection) and I want to pass exception as data to error object. So I try to catch Exception in Servlet but e.getMessage() return null, showing backtrace don't show my code at all (only…
jcubic
  • 61,973
  • 54
  • 229
  • 402
0
votes
0 answers

Reflection - can't call java method from JSON-RPC request

I want to call a method based on JSON-RPC request from a servlet I have code like this: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { …
jcubic
  • 61,973
  • 54
  • 229
  • 402
0
votes
1 answer

Tomcat can't start the app because it can't find JSONRPC2ParseException class

I have application in /var/lib/tomcat7/webapps/code I have init.java file that use json-rpc-2.0 I compile it using: export CLASSPATH=$CLASSPATH:/path/jsonrpc2-base-1.35.jar:/path/json-smart-1.2.jar javac init.java it compile but when I run the app…
jcubic
  • 61,973
  • 54
  • 229
  • 402
0
votes
2 answers

Creating a basic JSONRPC API in CherryPy - Getting 404s

The title is fairly self-explanatory, so I'll just show some code I've tried so far: From https://stackoverflow.com/a/713950, import cherrypy from cherrypy import expose cherrypy.config.update({'server.socket_port': 80}) class Test: @expose …
a p
  • 3,098
  • 2
  • 24
  • 46
0
votes
3 answers

RPC / XML-RPC / JSON-RPC in PHP

I am looking up exmples or tutorial of XML-RPC and JSON-RPC in PHP XML-RPC / JSON-RPC client and server Can someone tell me that? Thank you? Sorry My english is not good.
0
votes
1 answer

WCF ChannelFactory with Custom Endpoint Behavior (Json-Rpc)

I've been working really hard on a WCF Json-Rpc Service Model. I'm fairly new to WCF and WCF extensibility but finally I'm now able to process requests from a web browser :) To summarize it, I've now implemented an Endpoint Behavior, an Operation…
Dan
  • 1,060
  • 13
  • 39
0
votes
1 answer

Handling Restful services

I've been wondering about a good approach to implement (actually bind) a restful services as a client. You often see code snippets where the URL-"string" gets concatenated in high-level code, which obviously is very messy. like …
AlessandroEmm
  • 698
  • 7
  • 23
0
votes
1 answer

how to get sso token from login web service

I have a problem i need to get SSO token from a login web service but i cant seem to get it. when i do a ajax post it returns a html code of the login web page. I have tried to search stackoverflow and google for hints but i get nothing. here is the…
HellOfACode
  • 1,675
  • 3
  • 18
  • 38
0
votes
1 answer

how to get the whole inside dict in nested dict in python?

I have json rpc dict: {jsonrpc: "2.0", method: "secret", params: {book: {book_dict}}, "id": 1} this is what I submit it by ajax: $.ajax({ url: "RPC2", type:'post', dataType:'json', data : {jsonrpc: "2.0", method: "secret", params:…
user504909
  • 9,119
  • 12
  • 60
  • 109
0
votes
2 answers

Decoding json data to Python dictionary

I am currently trying to create a dictionary from a json formatted server response: {"id": null,{"version": "1.1","result": "9QtirjtH9b","error": null}} Therefore I am using json.loads(). But I always get the following error: ValueError: Expecting…
Phidelux
  • 2,043
  • 1
  • 32
  • 50
0
votes
1 answer

Speed of json-rpc in C++

I'm using json-rpc-cpp library from cinemast As a test I have written simple server which takes two integers and returns their sum to the client. On a really small VPS (128 MB RAM) it was possible to reach ~270 queries per second on localhost and…
user2461440
  • 182
  • 1
  • 11