Services

Events happening in the community are now at Drupal community events on www.drupal.org.

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

Posted by arithmetric on August 28, 2008 at 10:36am

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 more

Argument is cut short

Posted by Fixdit on August 25, 2008 at 9:26am

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

Posted by Steven on August 15, 2008 at 11:27pm

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.

Read more

PHP XML-RPC Client

Posted by tomhung on August 14, 2008 at 11:47pm

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 -

Posted by reecex on August 12, 2008 at 2:11am

my little drupal node editor built in flex check it out let me know what you think

Druplex

Read more

Service browser from front-end?

Posted by BradWaite on August 9, 2008 at 10:11pm

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 more

Configuring Services module for Security

Posted by robloach on August 8, 2008 at 12:48pm

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 more

How best to implement a service with xml attributes

Posted by kehan on August 7, 2008 at 9:24am

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.

Read more

File upload flash to drupal

Posted by attiks on August 6, 2008 at 8:52pm
Last updated by attiks on Thu, 2008年08月07日 10:20

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

Read more

using flex to build a module for webcam / audio comments

Posted by scarer on July 31, 2008 at 1:37am

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 more
5 comments Categories: , ,

Services from site to site

Posted by amitaibu on July 28, 2008 at 9:05pm

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 more
1 comment Categories:

Python Services API

Posted by jrbeeman on July 17, 2008 at 4:14pm

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 more

Node.save with flex

Posted by reecex on July 14, 2008 at 9:16am

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 more

ChinaOpen: Part 2 - Drupal Open-Training

Posted by john.zhu on July 13, 2008 at 6:15am
Start:
2008年07月15日 09:30 GMT
Event type:
User group meeting

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开始
主题:

  1. Drupal简介及基础概念
  2. 安装drupal(drupal5.8)
Read more

Automation from 3B2 CMS

Posted by amax on July 9, 2008 at 9:10am

Hi Everyone,

Read more

Using SOAP with Drupal

Posted by kellabyte on July 3, 2008 at 4:45pm

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 more

How to use Flash 9 (CS3) with Services and AMFPHP

Posted by amcc on July 2, 2008 at 2:44pm

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 more

call drupal function from external php file

Posted by mirian@drupal.org on June 25, 2008 at 9:18am

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.

Read more

Services Newbie Question

Posted by dewolfe001 on June 25, 2008 at 4:40am

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) {

Read more
Categories: ,

drupal 5, as2 node.save how to set uid and url alias

Posted by mhncsa-gdo on June 20, 2008 at 8:35am

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);

Read more
3 comments Categories:
Categories:
Subscribe with RSS Syndicate content

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /