I have just posted a lenghty series over in the OpenLaszlo forum.

http://forum.openlaszlo.org/showthread.php?t=8919

I have succeeded in getting Drupal to communicate with OpenLaszlo and vise versa. Right now, this is just an experiment to prove that it can be done. I am hoping that people on both the OpenLaszlo and Drupal end pick this up and run with it. I know I am not the only one that was looking for a solution to this problem. Enjoy!

Comments

cstachris’s picture

nice work monkey - i'm finding myself with a log of freetime in May and you may have started a great itch.

dwees’s picture

Could you use a MENU_CALLBACK and embed your test_xml_rpc.php code in that callback, thus mitigating the need for an extra file? Then this would automatically get any access control you want through Drupal and using the appropriate headers could respond appropriately. Then instead of pointing your OpenLaslo application at the test_xml_rpc.php file, you would point it at the path you provide your MENU_CALLBACK.

Similarly laszlo2drupal.php could be another MENU_CALLBACK as well?

Dave

cstachris’s picture

dwees,

I had to read your post a couple of times. It sorta makes sense. I've not done much in drupal module development, only a bit of theming. My contract got extended by a month (happens when you don't want it to!) so it's very much a casual interest for the next 4 weeks.

I'll do my research until my next lot of freetime comes up.

Thanks for your comment mate.

rolodmonkey’s picture

Wow, I had given up on this. Thanks for the feedback guys. It was almost a month before anyone responded, and I don't get notifications when there is a response. Is there any way to set this up?

I will have to look into what you are describing. This was my first serious customization of Drupal, and honestly I don't know what a MENU_CALLBACK is yet. I just got the new Pro book, and I will read up on it. As I said repeatedly in my posts, this was just a proof of concept. I have already implemented a more robust version for a real site.

I did mention in my posts that Flash creates a separate session when it calls a page. Therefore it is going to be difficult to do any access control with sessions. Correct me if I am wrong but from what I have seen of the XML-RPC in BlogAPI they solved this problem by forcing the method call to send the username and password every time.

--

Read more at iRolo.net