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.

happylrac's picture

Quick question ... testing the REST web services

I have a quick question. I have the Services REST server up with all the resources, and know that it is working. What I would like to do is use an app like Fetcher for the Mac or Poster for Firefox to attempt to login as a user. I am using GET and expect that the url will be something like

"http: //localhost:8080/endpoint/user/login?username=my_username&password=my_password"

but that doesn't seem to work. The REST server is returning "406 Not Acceptable: There is no user with ID 0". Can someone please set me straight here?

Read more
rylowry@gmail.com's picture

Accessing the enitre path in an argument

My question pertains to Services 7.x-3.0-rc3

When creating a webservice you can easily map parts of the path to arguments like so:

<?php
       
'args' => array(
          array(
           
'name' => 'name',
           
'type' => 'string',
           
'source' => array('path' => 0),
           
'optional' => FALSE,
          ),
?>

That's great if you only want the first part of the path, but what if I wanted the entire path. For example, say I have a url that looks like this:

http://www.example.com/endpoint/resource/some/long/path

Read more
dru_paul's picture

need clarification on the comment_service module

(referring to this post, which is the conclusion of a thread and patch created by heyrocker)
http://drupal.org/comment/reply/182069/1395176

I traced my problem to an error in the final Drupal 5 patch.
It has a trailing comma after the last array which causes the patch routine to choke and not spit out the module itself. So, after correcting that, and following up with all the other requisites, I can now post comments remotely.

yay

!

Read more
wiliam_steven's picture

Integrating Drupal with Handheld Motorola FR68

Hi guys,

I have interesting thing with services modules and very great, but i want to asking about integrating handheld motorola FR68 (using mostly in Warehousing things) to update status of project.

Can services integrated into drupal, actually i want to make Warehouse Management System with drupal, can you help me with this thing ?

Thank you.

Read more
agmin's picture

Release Schedule

Is there any general roadmap or release schedule for Services 3? Specifically for Drupal 6, but also Drupal 7. Are we talking weeks, months, or a year before a production release?

Read more
mottolini's picture

Problems using db_query in a custom service

It's quite weird, but maybe someone has already encountered the same problem.
The code, a service callback, is quite simple:

function myservice_service_search_products($query) {
  $sql = "SELECT * FROM mv_products WHERE description LIKE '%". mysql_real_escape_string($query) ."%'";
  $result = db_query($sql);

  $products= array();
  while ($product = db_fetch_object($result)) {
    $products[] = $product;
  }
  return $products;
}
Read more
sumachaa's picture

XML error parsing SOAP payload

Hi

I wanted to create a soap server for my project and I am planning to user the services module along with soap_server.
But when testing these Im getting an error message which says

"XML error parsing SOAP payload on line 1: Space required"

These are the modules I have installed

Drupal 6.17
Services - 6.x-2.4
soap_server - 6.x-1.2-beta1 with the patch from http://drupal.org/files/issues/751326.patch

Followed the steps mentioned in the link http://drupal.org/node/1101362

Read more
avinoama2's picture

Problem getting a module to work with services

Hi in the last 4 days I am trying to do a simple "Hallo world" module with services.
I'm using Drupal 7 with Services 3.X Working with REST Server.
I read the API doc's.
I created an endpoint on my site.
Iv'e manage to use the default node and user module's in my Services module endpoint.
The services module recognized my module and methods all, index, retrieve etc...
And when i try to view data i get white page with no content.
And I can't get any good Example of a module that works with Services 3.x.

Any idea on how to do it ??
Or a link to a nice article ???

Read more
perikut's picture

what i'm missing without Oauth in Drupal 7?

hi,

I'm in the typical moment in which I have to decide to start a new project using Drupal 7 or Drupal 6.

I'm mostly interested to use Services; I installed Services version 7.x-3.0-rc3 and see that Oauth authentication requires module Oauth, but, as far as I see, there is no version for Drupal 7 (http://drupal.org/project/oauth)

I understand that Oauth is for user authentification, but I'm not sure what exactly I'm missing if I really cannot install it in Drupal 7 (i'm afraid i cannot user Facebook and twitter login)

thanks in advance,
Pere

Read more
gcrouse's picture

Can Services be used to serve user account management across multiple drupal sites

We will have a wide variety of single-install Drupal sites, hosted under different domains, and possibly under different hosting locations.

Read more
sisko's picture

Services - Rest Server Setup

Hi guys,

I have the Services 6.x-2.4 module installed on a Drupal 6 site.
I am attempting to use REST but I am having difficulties getting things working.

For instance, http://mysite.com/services/xmlrpc returns some kind of feedback that the server is working.
While http://mysite.com/services/rest returns nothing and I am not sure if the server is actually working.

Can anyone offer some direction, please?

Read more
lisa.rae's picture

Drupal 7, XML-RPC and Sessions

I'm in the process of developing a Drupal site that will make heavy use of XML-RPC for smartphone clients. I would like to develop this site in Drupal 7, but had already started in Drupal 6. My question specifically relates to using sessions with XML-RPC requests.

How do you indicate in Drupal 7 that an XML-RPC method requires a valid session -- this is pretty straightforward in Drupal 6 with the Services module installed once you find the right documentation.

If there's documentation on this, please point me in the right direction, as I haven't found it yet for Drupal 7.

Thanks!

Read more
dajuice's picture

Retreiving all nodes of one type using services to flex/flashbuilder

I am in the process of developing an admin tool for a D6 site in FlashBuilder using AMFPHP and services v2. Currently im using the views service to create a view to get all the data from a list of nodes to download to my admin tool to work with it and then using the node.save to update drupal.

However as of services 3 and D7 the views service no longer exists so im wondering how to futureproof the tool so that i dont have to do a full rewrite for D7 / Services 3.

Read more
perikut's picture

simple Services parameter question

hi,
I'm newbie to Drupal and I need it specifically for feeding iPhone apps with JSON data.
I know how to access dbase data via a module using node_load and how to generate the JSON.

Now I simply want to pass a parameter in the URL, in order to get only the info that I want (ex: http://...mymodule?param=X)

I'm completely lost about how to do it. I have checked various drupal resources without getting anything clear. In most cases the info is not referering to Services.

Can someone please point out some ideas, resources, documents....
thanks in advance,

Pere

Read more
sylvain lecoy's picture

So what about services ?

For those who followed this thread: http://drupal.org/node/145551 what is the battle plan ?

For those who didn't what are you thought about the subject ?

We have an issue, but no working group about this. I don't want to see this thread last another year !

Read more
egomac's picture

Drupal 7 and Services

I am starting a new services-driven site and would like to know the opinion of the group if the project is worth starting using Drupal 7 instead of 6?

The application is heavy on services so it will be like having Drupal as a backend only to store data and serve them in XMLs.

Any successful implementations or stories is appreciated.

Thanks.

Read more
lisa.rae's picture

Forking services.connect -- how to get rid of sessions ID requirement

I'm new to Drupal, but an experienced PHP programmer. Please forgive the newbie question.

I'm in the process of developing a web service to be accessed via mobile devices (iPhone / Android). I'm not using API key authentication, but am using sessions.

Read more
eimhee's picture

How to create node with service3.0

I am try to save a node with service3.0, but it didn't worked,
I am using restful style, is there any example to save a node using service3?

public Object nodeSave(MultivaluedMap<String, String> queryParams) {

    Client client = Client.create();
    WebResource webResource = client
            .resource("http://localhost/drupal/rest/node/create?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=13033148613441");

    Cookie cookie = getCookie();
    ClientResponse response = webResource.accept("application/json").cookie(cookie).put(ClientResponse.class, queryParams);
    int status = response.getStatus();
Read more
rolf vreijdenberger's picture

amfserver, a new module that integrates actionscript clients (flash, flex, air) with D7 services

Hi all,

we're in the process of releasing the amfserver, a new Drupal 7 services module that integrates with actionscript based clients.
This means it's usable for flex, flash and air applications.
It's amf handling capabilities rely on the zend amf engine from the zend framework.

At the moment of writing it is complete, tested and features all you can wish for:

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: