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.
Custom Services no longer working
A Drupal 6 project using Services & AMFPHP I have been working on was recently moved to a different server.
The built in services are working fine:
(services/browse/system.connect, views.get etc.)
I've also tested the example echo service and it is working.
However, all other custom services are no longer working.
When I attempt to call the method using the service browser I get the following message:
"Access denied for user 'apache'@'localhost' (using password: NO)"
Read moreDrupal Interface Writer for C Sharp
Hi Everyone,
I created a console application that connects to a specified site and creates an interface based on the available services methods.
To read more about it and download the example, please visit: http://www.molinesoftware.com/?q=content/moline-software-drupal-interfac...
To download the lastest package of my framework, please visit: https://sourceforge.net/projects/drupalxmlrpc/
Regards,
Aaron
Read morerpc/document modif of the services module plus incorrect wsdl...
Hi
Read moreError Using user.save
Using the user.save method I receive the following error:
user warning: Duplicate entry '' for key 2 query: INSERT INTO users (created, access) VALUES (1254426886, 1254426886) in htdocs/modules/user/user.module on line 327.
I'm using Drupal 6.14 and the lastest version of AMFPHP and the Services module.
Nothing I've tried seems to work, so yny help getting past this problem would appreciated.
Read moreServices Methods
Hello,
I have been searching for a list of methods/commands (such as "node.save") which can be called via Services module. I have seen lots of tips on how to call the services but the methods where only provided as an example. Can someone please point me to the whole list, if such exists?
Thanks!
Read moreSample PHP Services Client Code
Updated code 9/30/2009. Uses Services 6.x-2.x-dev on Drupal 6.14; XML-RPC for PHP library at http://phpxmlrpc.sourceforge.net/. Thanks to clues from http://drupal.org/node/303285 and the services tester, it includes some code for populating CCK fields ("field_publication", "field_byline", etc.). This is pre-production code for importing articles to a newspaper website, designed to run on the command line. I just left the parseXML() function as an example.
Read moreFlex error ???
Hi,
I have a big problem
I have
xampp 1.7.1
drupal 6.13
AMFPHP 1.9
Flash Builder and work wirh SDK 3.4.
Every time I want to debug my flex application (that use RemoteObject with amfphp drupal module) I need to rename the default application, because not there will be no change effect.
Anyone have any idea?
Thanks!
Read moreJSON Server adds unwanted backslashes
I'm using JSON in Flash (because I'm also using JSON for iPhone and wanted to keep things consistent rather than mixing amf and JSON). I noticed that when I started using the JSON Server for the Services module that strings with apostrophes were getting slashes where they didn't belong. Check out the return differences between these:
<?php
//outputs didn't
echo json_encode("didn't");
//outputs didn\'t
echo drupal_to_js("didn't");
?>Document vs RPC style
I am attempting to use Adobe LiveCycle Designer to communicate with my Drupal install. However, after I select the data connection type WSDL and paste in the url of the WSDL, I get a message on any service I select that says "Cannot choose this operation: - Soap Binding must be Document/Literal." In the module, it appears that the type is hard-coded to "rpc". I am stuck and not sure what to do. I am new to the group and the module, so please bear with my stupidity on this. Thanks for any thoughts.
Read moreHow to integrate a iPhone application with Drupal
This will just be a short announcement of about a blog post that might interest people. Not trying to spam you or anything be we haven't been allowed into the Drupal planet feed yet.
http://goodold.se/blog/tech/integrate-iphone-app-drupal
Read moreJust getting started with Services, finding some issues...
Using Drupal 6.13, Services 6x-2x-dev
I am working towards implementing a web API to expose some computational services of my company. Starting out with a basic module that depends upon the Services.module, I am seeing these unexpected behaviors:
Read moreDrupal OAuth and Services
During the Drupal NYC Hackathon a number of us got together and outlined the current state of OAuth communication with the Services module.
Read moreComment Service and Flex : how to get all comments in one call
Hi,
I am on my way to build up a flex app to manage comments moderation for drupal websites that handle a lot of them. I noticed that last dev version of Services offers a Comment Service which is really useful. The thing is that it seems impossible to get all comments from website (only those linked to a given nid). I am not a WebService expert (far from it) so maybe I am missing something.
Read moreIntegrate Drupal and Flex(Air Application)
Hi to all,
I am developing Desktop Application for Drupal in Flex through which we can add data to the drupal database. I am using Services module(Version 6) for that. I am using the following things,
Services module(version 6.x-0.15)
Amfphp module (version 6.x-1.0-beta1)
amfphp for remote access
Front End -- Flex
Now i am able to create a web application to call the drupal database and
i can add the new data to drupal database.I am using "services-config.xml"
for remote object.But when i create an Air application with the same
flash actionscript3 amf DrupalService package, opensource
Hi all,
we've just created a DrupalService implementation in as3 for flash. It's a part of our internal company package that we have released under the MIT license. The package itself features (in our humble opinion) the best flash remoting as3 implementation out there (also featuring resultsets) and some other cool stuff. The core is fully unittested, and heavily documented, and we're making use of that in our DrupalService.
Read moreHow to auto-load first image
I have built a flex app that interfaces with Drupal services and AMFPHP. I was wondering if anyone could tell me how I autoload the first image in my slideshow?
Thanks :)
Here's my flex code:
<?xml version="1.0" encoding="utf-8"?>
<![CDATA[
import mx.controls.*;
import mx.rpc.events.*;
import mx.rpc.remoting.*;
Drupal NYC Hackathon
Join us on Sunday, August 16th for a Drupal Hackathon in New York. We will split up into a number of different groups to work on:
- OAuth: Polish the distributed authentication of the Services module with OAuth.
-
- Rob Loach
- zroger (Roger López)
- Jingsheng Wang (skyred)
- Performance: Pre-generation of content, taking security into consideration.
-
- litwol (Oleg Terenchuk)
- Media: File and image handling
-
- Drewish (Andrew Morton)
- Darrel O'Pry (Dopry)
- Theming: Advanced Techniques
-
- John Zavocki (johnvsc)
- Nikki Henninger (nikkiana)
- Jacine Rodriguez
JavaScript and Services: JSON Server + JSON + JSONP // + MooTools // Discussions
UPDATE
This thread expanded into general discussions with JavaScript and Services. There are couple MooToolers here so many examples are MT oriented. However, the principals would carry to jQuery et al.
This thread will be maintained every couple months.
Original Post
////// JSON Server + MooTools Request.JSON
var jsonRequest = new Request.JSON({
url: "http://yourdomain.com/services/json",
onSuccess: function(response){
var myDataArray = response['#data'];
// Manipulate data as necessary
}
}).send({ 'data': {
Read moreDrupalcon Paris
Shameless plug anyone who wants to see something about services at paris drupalcon and is registrated please cast a vote http://paris2009.drupalcon.org/session/consuming-drupal
Read moreuser.save not working
Hi
I'm quite new into Drupal. I figured out how to get nodes, users etc. in my Flex app.
But I'm not able to update a user's profile or add a new user. The permissions are set correctly. I'm using "Keys" and "SessID". I have the following code:
MXML
<mx:RemoteObject showBusyCursor="true" destination="amfphp" source="user" id="user">
<mx:method name="save" result="onSavedUser(event)" fault="onFault(event)" />
</mx:RemoteObject>The saveUser function
public function saveUser(obj:Object):void {
Read more 




