Hi
I'm trying to use the services module to connect Flash to Drupal. I followed some examples I found online as well as the example included in the book "Flash with Drupal".
I can connect to Drupal via Flash and get my Session ID but for the life of me I can't get the node.get call to work. I keep getting the error message: "Could not find the node".
Here is how I call node.get to try and get node 1 (which of course does exist!)
var nodeResponse:Responder = new Responder ( onNodeLoad, onError)
// call Drupal to get node
drupal.call("node.get", nodeResponse, sessionID, 1);
I used drupal's watch dog function to try and get some clues as to what is going wrong. What i found is that the function node_service_get($nid, $fields = array()) is receiving the sessionID variable as it's first argument. the last parameter 1 (int) is passed into $fields[0].
I also used the watchdog function inside of the function amfphp_method_call($method_name, $args) located inside of amfphp.inc. The values passed into the arguments:
$method_name=node.get
$args[0] = 18e7e05064hfdunfda31hufkn1 (my session ID)
$args[1] = 1
I couldn't find any mention of this issue anywhere except for this single post that seems to be about this issue yet it has not been resolved:
http://drupal.org/node/519078
I will really appreciate any kind of help here.
TIA!