Author Topic: Calling on all client developers  (Read 13750 times)

Offline Brahim

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8,270
  • Karma: +199/-15
    • View Profile
Calling on all client developers
« on: October 19, 2011, 04:09:11 pm »
Main category link: http://wiki.flexraid.com/category/developer-resources/

For TCP communication make sure to read all links starting with http://wiki.flexraid.com/2011/10/12/the-command-response-format/

For RESTful (GWT-RPC or JSON-RPC) communication: http://wiki.flexraid.com/2011/10/19/web-ui-services/

In all cases, developers have access to both methods of communications and can use both.




« Last Edit: December 12, 2011, 11:53:24 am by Brahim »

Offline Ramshackles

  • Jr. Member
  • **
  • Posts: 81
  • Karma: +8/-3
    • View Profile
Re: Calling on all client developers
« Reply #1 on: December 18, 2011, 04:42:24 am »
Hey Brahim,

I was wondering, JSON-RPC, will that really be available in the next beta?

I have a computer science degree, even though that's not my line of work anymore, I've recently been brushing up on my .Net development because I had to develop an add-in for Excel :) though that peaked my interest in getting started again.

So, if I can find enough spare time I will probably try to integrate a client ui into whs 2011 dashboard for the fun of it :) would probably be useable for those on SBS-line aswell.

Offline Brahim

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8,270
  • Karma: +199/-15
    • View Profile
Re: Calling on all client developers
« Reply #2 on: December 18, 2011, 11:30:49 am »
Yes, it will be available staring with beta 11 (to be released today).
Once you get started, feel free to bug me with any question you might have. :)

Offline Ramshackles

  • Jr. Member
  • **
  • Posts: 81
  • Karma: +8/-3
    • View Profile
Re: Calling on all client developers
« Reply #3 on: December 18, 2011, 01:36:04 pm »
Excellent news, can't wait to try it out :)

Though probably won't get anything done the first few weeks, got an exam Tuesday and Feb. 2 with my current line of work :)

Offline Ramshackles

  • Jr. Member
  • **
  • Posts: 81
  • Karma: +8/-3
    • View Profile
Re: Calling on all client developers
« Reply #4 on: December 23, 2011, 02:08:30 am »
As I noticed you put up b11, I was eager to try the JSON-RPC.

I'm afraid I'm not having a whole lot of luck using Jayrocks implementation.

I could get a simple javascript to get info from the webservice, while Jayrock can connect but keeps getting a:
{"error":{"code":590,"msg":"couldn't parse request arguments"}}

That's with only supplying the url and the method:
Code: [Select]
            JsonRpcClient client = new JsonRpcClient();
            client.Url = "http://server:8080/json/rpc";
            var obj = client.Invoke("services.getEngines");

I stumbled about the sourcecode of Jayrocks and but haven't yet come up with a solution.

PS. Should I open a new thread on this subject, since I just noticed this is a stickied post :)

Offline Brahim

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8,270
  • Karma: +199/-15
    • View Profile
Re: Calling on all client developers
« Reply #5 on: December 23, 2011, 08:45:21 am »
Err... it is service.getEngines and not services.getEngines.

Offline Ramshackles

  • Jr. Member
  • **
  • Posts: 81
  • Karma: +8/-3
    • View Profile
Re: Calling on all client developers
« Reply #6 on: December 23, 2011, 12:07:32 pm »
Hehe yeah i have actually written service, not plural, I just posted wrong.

Anyway I'm looking into writing my own rpc-client since jayrocks has some issues..

Offline Brahim

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8,270
  • Karma: +199/-15
    • View Profile
Re: Calling on all client developers
« Reply #7 on: December 23, 2011, 01:59:54 pm »
Hehe yeah i have actually written service, not plural, I just posted wrong.

Anyway I'm looking into writing my own rpc-client since jayrocks has some issues..

Try:

Code: [Select]
JsonRpcClient client = new JsonRpcClient();
client.Url = "http://server:8080/json/rpc";
var obj = client.Invoke("service.getEngines", new string[]{});

or maybe

Code: [Select]
JsonRpcClient client = new JsonRpcClient();
client.Url = "http://server:8080/json/rpc";
var obj = client.Invoke("service.getEngines", new JsonArray());

Offline Ramshackles

  • Jr. Member
  • **
  • Posts: 81
  • Karma: +8/-3
    • View Profile
Re: Calling on all client developers
« Reply #8 on: December 25, 2011, 05:43:48 pm »
Got it working, had to alter the sourcecode from jayrock though :)
« Last Edit: December 25, 2011, 07:19:40 pm by Ramshackles »

Offline Ramshackles

  • Jr. Member
  • **
  • Posts: 81
  • Karma: +8/-3
    • View Profile
Re: Calling on all client developers
« Reply #9 on: December 26, 2011, 03:17:54 pm »
I have issues with getAllRAIDConfigurations and getGlobalInfoModel, I suspect probably more?

Tried both with Jayrock and javascript/html, complains about a circular reference.

Offline Brahim

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8,270
  • Karma: +199/-15
    • View Profile
Re: Calling on all client developers
« Reply #10 on: January 03, 2012, 07:47:09 am »
Fixed.
I will get you a new build today or tomorrow.


Offline solarbang

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Calling on all client developers
« Reply #11 on: February 04, 2013, 04:04:41 am »
I do graphics and web design, I wouldn't mind helping, but programming isn't my strong suit.