Results 1 to 5 of 5
  1. #1
    vboehm is offline Member
    Join Date
    Aug 2013
    Posts
    2
    Rep Power
    0

    Default Looking for simple JSON-RPC client

    Hello,
    in every language (Python, PHP, JavaScript) I used for an RPC-Client, it took me minutes to find a small library (less than 250 lines of source code) for an RPC client, which needs 2 or three lines to call a remote function.
    Java Code:
    pseudocode:
    
    myservice = RPC-Service('http://myserver.com/.....')
    result = myservice.remotefunction(..., ...)
    Therefor I elected JSON-RPC for my favourite RPC implementaion and wrote several Servers (Python).

    Now I need to access one of them from a Java client and did not find any simple library. All packages focus on servers and/or need at least 100 lines of code for a simple client example.

    Do you know a simple JSON-RPC client implemantation for Java?

    regards Volker

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,367
    Rep Power
    6

    Default Re: Looking for simple JSON-RPC client

    Seems a bit of a trollish question really. HUNDREDS of lines of code? Only when you suck at Java.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    vboehm is offline Member
    Join Date
    Aug 2013
    Posts
    2
    Rep Power
    0

    Default Re: Looking for simple JSON-RPC client

    Quote Originally Posted by gimbal2 View Post
    Seems a bit of a trollish question really. HUNDREDS of lines of code? Only when you suck at Java.
    No, I'm not a troll. But maybe you are? :-)

    After looking several hours for a JSON-RPC client for Java without finding any useable example, I would be glad if you gave me a link to one library, which I can use.

    I followed the links on JSON-RPC - Wikipedia, the free encyclopedia which is also referenced on implementations – JSON-RPC
    • jsonrpc4j: Requires the Jackson library. I have no clue how to install this since I dont use maven.
      ... Dead end
    • jpoxy: Much bla bla ... 'Quick start using maven' ... nothing more. As I stated before, I don't use maven.
      ... Dead End
    • JSON Service: ... (server side) ... I need a client!
      ... Dead End
    • JSONRPC 2.0: 'A minimalist Java library'. There is nothing minimalistic on these pages. They blather about JSON-RPC ... how it works ... how to encode ... how to decode ... but I found no example how to simply build a client writing only 10 to 50 lines of code.
      ... Dead end
    • java-json-rpc: 'Implementation for J2EE servers'. I need a client!
      ... Dead end
    • simplejsonrpc: 'Another simple JSON-RPC 2.0 servlet, servicing the methods of a class'. I need a client!
      ... Dead end
    • gson-rmi: 'Light-weight, transport-independent, extensible RMI framework geared towards distributed computing'. I know RMI and I use RMI and it's nice ... but now I need a JSON-RPC client!
      ... Dead end
    • JDBCWizard: This seem also not to be a JSON-RPC client.
      ... Dead end


    And now it's your turn.

    I'm looking for a simple JSON-RPC client, which I can integrate in my existing project (NetBeans) by putting one or maybe 2-5 JAR files into my project repositiries and write some lines of code to use it.

    Or maybe someone can tell me or give me a link, how to get the needed Jackson library as JARs to put them into my project so that I can use jsonrpc4j.

    regards Volker

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,367
    Rep Power
    6

    Default Re: Looking for simple JSON-RPC client

    I said that it was a trollish question, not that you were a troll. I'll use a different word: its slightly venomous, like you have a personal problem with Java and are out to prove something.

    And no, I'm not going to bother with you. You clearly did not do this research of yours with any patience. The only thing I am willing to say is that the jackson jars can be downloaded from the site you already found, you just need to spend 5 seconds longer looking for the direct download links directly in plain sight under the downloads, 2.x header. No need for Maven at all.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    abelgo is offline Member
    Join Date
    Apr 2014
    Posts
    1
    Rep Power
    0

    Unhappy Re: Looking for simple JSON-RPC client

    Quote Originally Posted by vboehm View Post
    No, I'm not a troll. But maybe you are? :-)

    After looking several hours for a JSON-RPC client for Java without finding any useable example, I would be glad if you gave me a link to one library, which I can use.

    regards Volker
    My experience was identical to yours. I proceeded slightly further attempting to verify and compile some of the endless dependencies required for using several of these packages. I am also a net beans user and would not download a random untrusted jar off the net I didnt have verified source code for. I use mavin occasionally but would prefer a very simple java JSON RPC client.

Similar Threads

  1. A Simple Client Program
    By IceNine in forum New To Java
    Replies: 6
    Last Post: 03-30-2013, 12:58 AM
  2. Replies: 3
    Last Post: 04-04-2012, 01:38 AM
  3. simple FTP server and FTP client
    By simontkk2005 in forum Networking
    Replies: 2
    Last Post: 11-17-2010, 11:38 AM
  4. JSON Lib: json-lib-1.0-jdk13.jar
    By Raghuraman K in forum Advanced Java
    Replies: 3
    Last Post: 05-13-2010, 11:00 AM
  5. Simple server-client
    By DC200 in forum New To Java
    Replies: 6
    Last Post: 12-09-2009, 06:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •