Hey Folkes.
I'm new to Drupal, and there this is also my first post in this forum.

Im' a ActionScript developer, and very interestet in using Drupal as a service backend for a Flash/Flex front end.
I've been playing around with the service module and AMFPHP module, and tried to make it work.

When ever I try to connect to Drupal trough AMFPHP, I get a fault message telling that i.e. the class "node.php" dos not excist.
I have followed along the tutorial on this site regarding using Flex, to retrieve and post new "reciepies" but i get a similar fault message that my "view.php" service class doesn't excist.
I have followed these tutorials:

http://groups.drupal.org/node/2768
http://drupal.org/node/118136

Neither of them are talking about writing your own service classes, and as i'm new to Drupal, I'm not sure if it's because its implicit that you have to, or because you don't have to??!! :)

My question is, do i need to write these service classes my self in PHP, and where should I just put them in the amfphp/services folder? -> in the documentation it says that the AMFPHP module overrides the gateway.php settings.

Dos any one know of a tutorial or some place where I can find an code snippet to a service class used with AMFPHP?

Hope some one knows where to go from here.

Thank you.

Comments

horizens’s picture

We use Drupal as a CMS for Flash and have not had to write our own service classes yet. Within the services module directory, there are classes already written for node, system, taxonomy, user, and views. We mainly use node, taxonomy, and views for our projects.

I wrote a brief walkthrough of working with services and Flash for someone else: http://drupal.org/node/134877

This is the actionscript to make calls and display the results. You will need to already have nodes, content types, or views created to use this, but it at least gets you started. Obviously you will need the remoting classes installed for Flash as well.