Message Board


Message Board > BlitzMax / Blitz3D / BlitzBasic > XML-RPC Interactive GUI

April 11, 2009, 23:16
Htbaa
Perl
368 posts

Original post: http://www.blitzmax.com/Commun … php?topic=84145

A few days ago I made a topic about wrapping XMLRPC-EPI. A C library that allows you to make XML-RPC clients and servers.

After a lot of hours of debugging memory exceptions it seems like I've finally fixed them. As I can now do multiple requests to an XML-RPC server without receiving errors :-).

So far most of the client oriented functions are wrapped and working properly. I haven't found any memory leaks but there could still be some. So testers and collaborators are more than welcome. The project is hosted on GitHub so anyone can access it.

To speed up testing different type of requests I wrote a little GUI (see screen), thanks to LogicGUI. It shows the XML request, XML response and in the BlitzMax tab it shows how it's translated to BlitzMax.



When filling in the fields in the GUI make sure everything is correct. I use a socket to do the request, but haven't implemented a connection timeout so the app will freeze up if you enter the wrong host.

By default the request type will be off the type xmlrpc_vector_mixed. I need to add listbox to the GUI which allows you to select xmlrpc_vector_none, xmlrpc_vector_array, xmlrpc_vector_mixed or xmlrpc_vector_struct.

The parameters textarea allows you to pass parameters to the function you're calling. It uses this syntaxt:

Code:
type:id:value


Type can be: boolean, int, double, string, base64, datetime.
Id can be left blank, so use this syntaxt; id::value
Value speaks for itself.

A nice example to see how xmlrpc.mod handles a complex response is to empty the parameters textarea, and call funcs.somefunc2.

Any comments are welcome :-).

Download XML-RPC Interactive GUI
Project on GitHub (htbaapub.mod)
____________
blog.htbaa.com
#
April 13, 2009, 00:14
Fiona
games are terrible
-9616558 posts

Woohoo someone else to follow on Github.
____________
laffo
#
April 13, 2009, 09:41
Htbaa
Perl
368 posts

Well Git is actually a lot cooler than subversion :-). Currently on GitHub the source has been updated of the GUI. As it now allows you to set the vector type of your request (none, array, mixed or struct).
____________
blog.htbaa.com
#
April 14, 2009, 12:35
Fiona
games are terrible
-9616558 posts

You couldn't pay me to use Subversion willingly anymore. I got so sick of it's shit ages ago, so glad I moved to git. Just the increase in speed alone is worth using a DVCS.
____________
laffo
#
April 14, 2009, 17:59
Htbaa
Perl
368 posts

Its speed is indeed a whole lot better then Subversion. Try committing about 20 files at once to subversion and it can already give you a hickup.

Branching on Subversion is possible as well, and works good enough for me but with Git I can do local branches and ditch them if I want to, without polluting my repository. And the fact I'm not required to be online to commit changes is great.
____________
blog.htbaa.com
#
April 14, 2009, 18:08
Fiona
games are terrible
-9616558 posts

Cheap local branching is about a billion times better than what DVCSs offer.

Merging in Subversion is broken to all hell, whereas in Git I've had next to no problems.
____________
laffo
#

Message Board > BlitzMax / Blitz3D / BlitzBasic > XML-RPC Interactive GUI

Quick reply


You must log in or register to post.
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!