Page 1 of 1

[DEV] XMLRPC + Java

Posted: 28 Feb 2014, 11:12
by spdy
Hello !
Thanks again for your wonderful work with maniaplanet (it will be cool if every editor could do the same).
I have a question about the XMLRPC implementation.
Are you using standard implementation ?
Because when using the Apache XMLRPC Client I'm having trouble executing commands.

The sub-question really is : do I need to reimplement the dedicated-server-api (https://github.com/maniaplanet/dedicated-server-api) or can I just use a standard XMLRCP lib ?

Thanks !

Re: [DEV] XMLRPC + Java

Posted: 28 Feb 2014, 11:52
by spdy
Ok so it seems a little bit different with what I use to see :) ("GBXRemote 2" just after socket creation ?)
I'm gonna try to write a simple equivalent in Java with the XMLRPC parser from Apache and will probably make a lib available on github.

Re: [DEV] XMLRPC + Java

Posted: 28 Feb 2014, 12:14
by Jojo_44
I have already written a library for my java servercontroller(not public), if you wanna take a look:

http://pastebin.com/ATfgA5mp

If you are a bit familiar with socket programming this should help you build your own library. If you want the full library with the parser and stuff, tell me and I will send it to you when I´m back home tonight.

You can also take a look at my most minimal GBXRemote implementation for php which should help you as well:

https://github.com/Jojo44/GBXRemote/blo ... Remote.php

Jojo

Re: [DEV] XMLRPC + Java

Posted: 28 Feb 2014, 14:05
by spdy
Thank you JoJo !
That's exactly what I was writing :)
The goal is to put it in a public lib host on github.com (with GPLv3 licence).

I'll perhaps use some snippet of your code, can I ?
If yes I'll mention your name in my "almost the same" class and in the credits.

Re: [DEV] XMLRPC + Java

Posted: 28 Feb 2014, 14:17
by Jojo_44
spdy wrote:Thank you JoJo !
That's exactly what I was writing :)
The goal is to put it in a public lib host on github.com (with GPLv3 licence).

I'll perhaps use some snippet of your code, can I ?
If yes I'll mention your name in my "almost the same" class and in the credits.
Yeah, no problem you can use everything ;) I don´t have the time to publish my library, so if you could write one and publish it that would be cool :thumbsup:

Jojo

Re: [DEV] XMLRPC + Java

Posted: 28 Feb 2014, 14:18
by spdy
Thank you :)

I'll let you know when I finish it !