Hi,
let's start of saying I'm a newbie in the whole Drupal thing, so excuse me if some things I'll try to explain are rather vague...
In a few weeks I'm starting to work on a project, where I'll have to communicate between Flex and Drupal. Reading some articles concerning this topic, I found out that AMFPHP probably is the way to go. I tried out some basic tutorials (such as this one and this one and this one), which make me stumble uppon the same error message again and again, which say I can't get to a particular Drupal service. For example, when I try to retrieve a node, I get something like this:
Node_service
fault: [RPC Fault faultString="The class {node_service}
could not be found under the class path
{C:\xampp\htdocs\drupal\modules\services\services\node_service\/node_service.php}"
faultCode="AMFPHP_FILE_NOT_FOUND"
faultDetail="C:\xampp\htdocs\drupal\modules\amfphp\amfphp\core\shared\app\BasicActions.php on line 33"]
Messing around with my ednpoint path, I think my error has something to do with the Gateway.php fle. Can somebody maybe explain how this gateway file can get to the Drupal modules, since it seems to look for classes in .php files, although Drupal works with .module files. Do I need to define a class in a custom php file for every method of a drupal service I want to use, and call the method in the according module from there? Is it possible to include every service I want to use at once, so I can use service methods like node.load or user.login in my Flex code?
My AMFPHP installation seems right (I installed amfphp-5.x-1.x-dev in the modules directory, and amfphp-1.9.beta.20070513 under that) according to Drupal (5.3), so I don't think the problen lies there.
Thanks!
Comments
Comment #1
JoachimVdH commentedYou problably need to turn on node service in the modules page.
Afterwards when you visit your services page, you will see node service available.
Like in the first screenshot of the zend tutorial.
Joachim
Comment #2
JoachimVdH commented