This is a discussion and working group for anyone interested in the Services module and related modules. This module was created out of a need for a standardized solution of integrating external applications with Drupal, specifically Flash and Flex applications. Visit the issues page for all bug reports. Also visit the Services Handbook for information and examples.
ActionScript 3 framework for interfacing with Drupal
Thomas Saunders and I are releasing our ActionScript 3 (Flash 9/CS 3/Flex 2) framework for interfacing with Drupal sites running the Services and AMFPHP modules.
Our framework handles some of the basic aspects of connecting a Flash application with a Drupal site, invoking service methods, and retrieving data.
To download the ActionScript class files or view the API documentation, please see our site at:
http://thirdavedesign.com/drupalsite
Please let us know if you find this useful, and if you have any questions or suggestions.
Read moreArgument is cut short
I had this problem before with the views.getViews and node.load services using Flash AS3. I would need to generate an Array to pass even a single string argument or it would only utilise the very first digit?!.
AS3 code:
var obj:Object = ["123"];
var nodeArg:Array = new Array( obj );
drupal.service(loadContent,onFault,"node.load", nodeArg[0],['nid','title']);resulting argument = "123"
I'm using the same kind of code as when I load nodes to now save them.
AS3 code:
public function init() {
Read more Services error handling
There doesn't seem to be an elegant way of dealing with errors. services_method_call() invokes services_error($message), which in turns invokes a server-specific method to output an error in the server-native format. However, this server-native error lives in the same space as legitimate results.
PHP XML-RPC Client
Well there seems to be a lack of simple examples or documentation on connecting a PHP XML-RPC client to Drupal Services. If this example exists, I could not find it.
Here is my example code:
http://gregbosen.org/blog/drupal-services-php-xml-rpc-example
Please comment on it, if you have suggestions.
I wonder if this should be on the Example page in the handbook?
G
Read more- DrupleX -
Service browser from front-end?
How would one go about setting up access to the service browser from the front-end? Or at the very least, call a service and see the returned object?
Read moreConfiguring Services module for Security
Marc Ingram has written up a great article detailing how to secure your service setup: Web services in Drupal: Configuring Services module for security.
Awesome article, Marc!
Read moreHow best to implement a service with xml attributes
Hi,
I'm very new to drupal services and I've been trying to use the rest_server module and it seems to work pretty well for my purposes (just getting the data out rather than putting it in). I'm now getting to the point where I'd like to be able to add attributes to the xml elements in the response, but I'd like these to be extensible to other server modules if possible (so i'd like to do it in my service module rather than implement a new server.
File upload flash to drupal
This is a proof of concept for file upload using flash 8 and drupal 6 + amfphp
Limitations
The filename has to be unique so it can be matched when saving the node
File upload in flash uses FileData, flash 9 should be able to change this to Files so we (probably) can use the build in file upload?
Flash code
var fileListener:Object = new Object();
fileListener.onSelect = function(file:FileReference):Void {
// second ("files") and third (false) parameter only work in flash 9
using flex to build a module for webcam / audio comments
I am building a module to save webcam/audio comments using flex to design the interface and write to a Red5 server.
I am deconstructing the Riffly module to write a module to have the flex interface appear with comments and write to the Drupal database.
Read moreServices from site to site
Most of the discussion here is about Flex, AIR etc', but I wasn't able to fully crack how to use services on a simple site to site.
Here's the task - how to node.save as a logged in user from one Drupal site to another?
Read morePython Services API
Just thought I'd let everyone know I've started the Python Services API project, which provides a set of classes and and tests that Python developers can use as a basis for integration with the Services module. It's fairly bare-bones at the moment, and I'm by no means and expert Python developer, so feedback and contributions are more than welcome.
Read moreNode.save with flex
Hey guys im being driven up the wall all of my services calls are working in flex except node.save everytime i try to use it i get a
"call_user_func_array(): First argument is expected to be a valid callback, 'node_form' was given"
heres the flex fault code>.
.faultCode:AMFPHP_RUNTIME_ERROR faultString:'call_user_func_array(): First argument is expected to be a valid callback, 'node_form' was given' faultDetail:'I:\My Documents\webroot........\includes\form.inc on line 358'
the error occurs even after following the recipes screen cast
Read moreChinaOpen: Part 2 - Drupal Open-Training
Having launched ChinaOpen this saturday, we will be shifting from Adobe's Flex/AIR track into Drupal, from Tuesday July 15, 2008 on.
This is an "introduction to Drupal" type of training, detail as follows:
7月12日, ChinaOpen 第一站:adobe flex,详细请见 http://drupalchina.org/node/4782
从7月15日起, ChinaOpen 第二站: Drupal公开课程 ,
具体课程安排如下:
7月15 第一帧 Drupal 基础
将以drupal5.x版本讲述,暂定2008年7月15日上午9:30开始
主题:
- Drupal简介及基础概念
- 安装drupal(drupal5.8)
Using SOAP with Drupal
Hiya.
I am new to Drupal so please bare with my ignorance ;)
We are evaluating CMS's out there and usually in the enterprise world what makes or brakes you is the due diligence that has been done on integration APIs.
We have looked at various other CMS's and it seems like Drupal is beginning to take being a "content management service" more serious than other alternatives who are happy to just be a website with open sourced code and "integrate however you wish" philosophy.
I am really glad to see this initiative.
Read moreHow to use Flash 9 (CS3) with Services and AMFPHP
I've seen a number of Flex/Drupal tutorials, but very few Flash/Drupal tutorials. There is one here:
http://modern-carpentry.com/talk/?p=32
But it misses out any of the newbie stages, i'm just about getting around OOP and am pretty new to AS3, so i'd love some .fla example files, or a real step by step tutorial. Does anyone know of a really simple tutorial to get me started.
My goal is to initially make a simple flash website that can access drupal, but i'm stumbling at the first hurdle - can anyone offer a pointer?
Read morecall drupal function from external php file
Hi all,
I'v just heard about this module and understood it might help me...
I want to get values from external php script which will call drupal function that will take the data and call "node_save" with new node that contain the relevant data (which was arrived from the external php)
I don't understand how services can solve it.
Thanks,
Miriam.
Services Newbie Question
I've been trying to build two modules that will talk to each when installed on separate sites. The functions appear to work in unit testing, but they do not talk to each other. I am not sure what I'm doing wrong. I made up a hook_xmlrpc and a hook_service function to see if that was the difference, but no luck there.
Function on calling site and the function that "should" be calling the remote site:
// basically the cron job-- the tool that updates the links and spiders for new entries
function plrhub_update_index($site_id = -1) {
if ($site_id == -1) {
drupal 5, as2 node.save how to set uid and url alias
Hi Everybody!
I'm new to drupal. I would like to make a website with a flash based interview appz. After user click send button I'd like to store the interview text as a node. I used the example "Accessing a service from Flash 8". It works fine.
I have made some changes in the flash code, because I don't want to load the node to the flash but I want to save the flash content to database as node:
var content = new Object();
content.type = "interview";
content.title = "some title";
content.body = "some body text";
var pc:PendingCall = node.save(content);








