Web Services Tutorial / Example?

I need to provide Dolphin data from a module as XML, and was wondering if there were any examples of how to do this.  I have a method in the Module class to get the data, but am wondering if there's a cleaner way to do send the XML with the proper header than clearing the buffer, printing it and exiting the script.

I know Dolphin has some internal ways of sending XML, is there a standardized way for modules to be called to send XML instead of full Dolphin pages?

Thx,

Tac

Quote · 5 Dec 2010

You can use xmlrpc to send xml output. For the examples please refer to the files in /xmlrpc/ folder.

Rules → http://www.boonex.com/terms
Quote · 5 Dec 2010

Thanks, that'll be a start.

I reviewed a couple of files at random, and there's not a single comment in them.  Is there anything at all that would explain authentication, parameters, even a trivial REST example?  Running mysite.com/xmlrpc/ give an error message, but I'm sure there's something more besides trying to read through the code and guessing how it's supposed to be called.

Obviously, with AJAX virtually every call to data may been needed in XML or JSON.  With Dolphin's module system, it seems like that's possible--e.g. /m/module/xmlList could call actionList, but return the data in XML, or jsonList could do the same, whatever.  But there would need to be some sort of standardized way of verifying the login, sending back error messages.

Tac

Quote · 6 Dec 2010

You need to make xmlrpc request to get xmlrpc response. If you just open it in browser - you will not get any resultative answer.

Regarding login system - you need to pass valid username and encoded password in every xmlprc request as first 2 parameters.

Rules → http://www.boonex.com/terms
Quote · 6 Dec 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.