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.

svenrissmann's picture

API like Uniform for Module-2-Module communication

Hi

First, excuse me if theres already some solution for.
I've surfed drupal.org and also the groups but didn't find something...

What I've to do is building a "stack" like Acquia but with advanced functionality.

For this I'll need to grab some already existing Modules and change some of their functions to work "cleaner" with other or mine, too. Because of this it would make updating Core and also Modules a horrobale job I'm looking for a standardize solution to let Modules communicate with each other without bigger modifying.

Read more
iongion's picture

Alternative to AMFPHP using SabreAMF

This is an alternative module to amfphp for drupal 6, amfphp seems to give people some headaches during last period.

Try it, use it and check the licenses, SabreAMF comes with a different license than drupal.

(also check the as3 samples)

Download the attachment and rename the file from sabreamf.zip_.doc to sabreamf.zip and extract it. Cheers.

I would be glad if someone mirrors it, as it was rejected to enter drupal modules.

In any mean, this is mostly a blatant copy/change of amfphp module to keep compatibility.

Usage is almost the same as using amfphp module.

Read more
amcc's picture

flash+amfphp+services+drupalSite working in safari and not firefox

I've got a local copy of my site (running on MAMP) that uses flash with the technology and frameworks mentioned in the title working fine on both Firefox and Safari locally. It also works fine locally if I choose the remote path for the gateway url in both browsers ONLY if the site is running locally - but if I upload the swf online it works in Safari but not Firefox.

To recap -
running locally in MAMP at the address http://mysite.dev (localhost/mysite)
gateway URL = http://mysite.dev/services/amfphp/gateway.php
works fine in Firefox and Safari

Read more
gaberoffman's picture

Getting blank screen for REST response for "get"

I'm new to Drupal so forgive me if this is a noob question. I've set up Drupal 6 and the Services module and the REST Server and the Zend Framework. When I make a REST call, eg. http://mysite/services/rest?method=node.get&nid=1 I get a blank screen. However, if I change the method to node.delete, I get an xml succeess response. And I get an xml error message if I pass an unknown method name.

Read more
mikehomee's picture

Services fo Workflow

Hi!
I'm just a newbie in drupal, especially in services.
Although i already used this powerful services_module several times using java application.
I want to know if there's a way to view the data of workflow_module in sevices?

Thanks in advance!!!

Read more
kkretsch's picture

java node.save example anywhere?

I have a java client up and running using org.apache.xmlrpc.client.XmlRpcClient as client lib and a current drupal 6 with services via xmlrpc enabled. I already can connect, login, logout and even loading a node works.
Authentication is done via sessionID, API-key is disabled.

Now for the problem: i can't get the node.save to work. I give the function two parameters, the session and some structure. What java type equivalent is there expected?

config.setEnabledForExtensions(true);
...
HashMap<String,Object> hmSave = new HashMap<String,Object>();
hmSave.put("type", "pruefsumme");
hmSave.put("title", ivFileList.get(i));
hmSave.put("field_crc32", ivCheckSumListCRC32.get(i));
params = new Object[] {
sessid,
hmSave
};
Object oSave = client.execute(WS_ACTION_SAVE, params);
System.out.println(WS_ACTION_SAVE + "\t" + oSave);
Read more
amcc's picture

Views 2.x vs Views 1.x with services etc

I'm using the Drupalsite framework (http://thirdavedesign.com/drupalsite/) to connect to view via AMFPHP and Services with Views 2.x (and Drupal 6.x obviously), I've had everything running fine in Views 1 / Drupal 5 and i'm keen to update to Drupal 6.

With Views 1.x (Drupal 5) a view that looked at nodes with images (using imagefield) you got the URL of that image, with Views 2.x everythings a bit different and i'm struggling to get the image info.

To recap this is the set of modules i'm using (that are relevant)

CCK 6.x-2.1
ImageField 6.x-3.0-alpha3
ImageAPI 6.x-1.2

Read more
carvalhar's picture

amfphp always returns null

hi,

i have drupal 6 with amfphp and services. i think it is ok, because i don't get any error when i try to connect..but..
my call to amfphp ALWAYS return null...and not even a small warning, no errors...just null.

when i use remote object, the function for result ok is called...just the result comes as null.

what might be happening?

Read more
josys64's picture

Pb with menu.get and Flash as3

Hi,

from an as3 script i'm calling the menu.get method and i get only items with path = <front>, if i specify a node in the path field i don't get the item (path = node/4).

When i test from Drupal admin/build/services/browse/menu.get with the call method same problem.

Any suggestions ?

services 6.x-0.13

Read more
jahwe2000's picture

SOAP example message

Hello,

I want to connect my C# application to my drupal site. I would like to do this with SOAP, as I am more familiar with that and I cannot get real insight in the XML-RPC proceeding. Now, there is no example of a SOAP message so far. Does anyone here have a sample raw xml message for me, to get a starting point on that?

many thanks in advace :)

regards,
Philip

Read more
hh-gdo's picture

SOAP service always returning "Token has expired."

I'm trying to access a Drupal service exposed by the SOAP api.

I'm using PHP with the SOAP extension in my client.

I keep getting "Token has expired." when I try and do user.login

1) I generated a key in Drupal admin and assigned it a domain.
2) I turned on use sessid (it was off) in the Drupal Services settings
3) below is the code I'm using:

PHP 5.2.6 with PHP SOAP extension...

.
.

Read more
chrism2671's picture

XML-RPC, CCK & Services

A job board wants to integrate their job board with our job board, so that posts made to their site are made to ours. We are providing job posts using CCK, and they want to be able to submit & delete posts to our board.

I am wondering what the best strategy for doing this would be? Would it be to extend the node service, or to write a complete new service from the start? The other site is based on Ruby on Rails, so I want to make the API spec as simple as possible (hiding all of this node struct nonsense), to give a request something like this:

Read more
pieterdc's picture

Proposition for a new services module's API key security model

Hey services module users and developers,

I have a strong feeling the API key has an incorrect implementation in the services module.
Let me try to clarify and make a suggestion.

Read more
amcc's picture

passing arguments to views with drupalsite framework

I'm using the Drupalsite framework successfully to get views into flash. Has anyone had any luck passing arguments to views with drupalsite.

Read more
quentinsf's picture

Creating a node in Python

I've got a really simple example script showing how you can create a node in Python using XMLRPC.

It's here, in case anyone finds it useful!

Read more
seutje's picture

pushing info from the server to a client

Hey there, I've been developing a flash app which would allow ppl to make a certain type of node with a fancy graphical interface.

this is step 1 one the project and it went fairly easily, but next steps in the project involve multiple people working on a single piece of content at the same time from within this flash app, with some sort of chat interface so they can communicate with each other.

Read more
Fixdit's picture

Can you node.save and apiKey???

Simple question, how do I use an apiKey for my node.save service in AS3? My site needs the key to load nodes and would get:" Missing arguments" otherwise, however I'm pulling my hair out trying to find the syntax that would let me include the site's api key in the node.save call. Please, please help!
Many thanks
Node.save service call:

      private function saveGame():void {
         gateway = new RemotingService(gatewayUrl);
         var responder:Responder = new Responder(onResult, onFault);

           var edit:Object = new Object();
            edit.type = "note";
          edit.title = new Array({value:formBubble.title_txt.text});
         edit.body = new Array({value:formBubble.body_txt.text});
           edit.field_xcoord = new Array({value:String(Math.floor(p.x))});
            edit.field_ycoord = new Array({value:String(Math.floor(p.y))});
            edit.field_zcoord = new Array({value:String(Math.floor(p.z))});

           gateway.call("node.save",responder,edit);

       }
Read more
CMG's picture

Does anyone knows if someone has developed an actionscript framework for interacting with drupal amf services?

I tried the drupalsite Class of thirdavedesign.com people and I liked it pretty much, in fact is a very effective script, but I founded there were too many responsabilities in just one Class, there are no strict Data Typing in objects involved in the communication procces what makes difficult to customize our own needs.
I wonder if anyone knows someone has developed other framework yet.

Read more
nekobul's picture

Create services like you create computed field

Hello Guys,

I have researched the services module and it is great. However if you want to implement your own services you have to build a new module and implement required functionality in it. I'm not sure if this idea was floated before, but what would say you if it is possible to implement services methods in a similar fashion like you implement computed fields with the computed field module. So when you need a new method, you have a web interface where you can copy-and-paste your method's code and then you can run the method. No need to deploy new modules.

Read more
smerrill's picture

Better Views2 Support for Services D6

Hey everyone - I've just posted the results of some weekend tinkering with the Views2 API as an issue to the Services issue queue: http://drupal.org/node/329048.

It adds a new Views2 service and a set of Views2 handlers that let you create new displays for all your views suitable for output to Services as either raw DB values, styled fields, or full nodes.

Read more
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: