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.
canyin china(餐饮中国) app(ios, android) base on drupal
进过两个月的开发,餐饮中国第二版在ios, android 市场上架了。
餐饮中国是专注于移动互联网络,为全国餐饮专业人士提供以行业资讯、展会、招商、会议、赛事、教育等信息服务为基础的互动内容整合平台。在行业大型活动期间特别提供交通线路、会务安排、活动日程、嘉宾信息、投票调查等信息服务。
app开发主要考虑了下面几点
1)最好维护一套代码支持多个平台,ios, android, win phone
2)使用开源产品,减少开发成本
3)方便实现页面设计
后端服务的开发主要考虑了下面几点
1)方便管理员的维护
2)使用开源架构,降低开发成本
3)支持Restful API
4)支持推送功能(push notification)
最后确定了app使用jquery mobile进行开发,用phonegap进行封装,服务器使用drupal进行二次开发,app 与服务器的数据交互使用json.
android 下载
http://apk.hiapk.com/m/downloads?id=fany.ccas25&vcode=2
ios 下载
https://itunes.apple.com/cn/app/can-yin-zhong-guo/id617669119?mt=8
Develop Digital Poster Platform | The Cloud + Compass
We're looking for an enthusiastic Drupal developer for an exciting role developing an award winning platform used by clients such as McDonalds and Channel 4 to schedule their digital poster campaigns for sites including Piccadilly Circus, The London Underground and Westfield, etc.
You must have a high competency in Drupal module development to apply, as well as strong skills in PHP, JavaScript and a knowledge of XML.
Read moreHow to update node field from Actionscript3 using Services and AmfServer
Hi Folks!
I've set up the services 3 module and all the amfserver/zend dependencies, and can retrieve node information from D7 back into actionscript. However, I am soooo stuck on trying to update node fields back into Drupal. I've run and understand the tests provided by Rolf Vreijdenberger in his Drupal7AmfServer.as file. However, I see no example for doing the node update.
The handlers have been set:
proxy.setHandler("node", "retrieve", onResult, onStatus);
proxy.setHandler("node", "update", onResult, onStatus);
Reducing memory usage for custom resources for services module
I have a Drupal 6.19 site that also links to some mobile app via custom resources written using Drupal Services 3.x module.
I have set php memory limit to 512M. The site works fine without any memory issues.
However, because the mobile app fires 4-5 concurrent web services requests as a burst, a single app running can apprently cause my server to run out of memory and return a 500 Internal Server Error. The log shows this error:
Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/cmadmin/public_html/drupal/index.php
Display System Messages Via Services
How can you display system messages to a user via services? Most interested in the REST server. Thanks!
Documentation for data requirements for creating nodes through the JSON Restful Server (Services 3, Drupal 7)
We have a project to complete for a client that involves setting up a restful web service backend for a set of mobile apps for Android and iOS. We have elected to use Drupal as our restful server and utilize the JSON service available through Services 3 along with the spyc library.
Read moreAutomatically creating and configuring services endpoints
Hi folks,
I've got hundreds of sites communicating with each other using the old services 2 xml-rpc system, which of course is unsupported. I'd like to move to services 3, and I've got all my API calls working with 2-legged OAuth.
Read moreMobile4Social WikiVillage - mobile application based on Drupal
Hello all,

We are pleased to release another Android application from the hands of Mobile4Social.com.
In this case, the owners of WikiVillage.co.za were looking for jump into the mobile world, and decided to use our technology as the basis.
user.update xml-rpc method - Missing required argument data
Hi, I am sending the below xml for user.update and I get "Missing required argument data" . what am i doing wrong
<?xml version="1.0"?>
<methodCall>
<methodName>user.update</methodName>
<params>
<param>
<struct>
<member>
<name>uid</name>
<value><int>48</int></value>
</member>
<member>
<name>name</name>
<value><int>sally</int></value>
</member>
</struct>
</param>
</params>
</methodCall>questions about user.register
How can I specify the uid in the user.register method instead of having Drupal automatically assign it ? (using xml-rpc) Also how can I specify the role (s) for this user ? I tried
role
editor
but it ignores this. thank you
questions about user methods with xml-rpc
I need to know the method names and the expected structure for modifying and deleting users with xml-rpc using drupal's Services module.
There is an example for user.register here http://drupal.org/node/1299978 but I cant find where the other methods are documented. Thank you, diana
index
Took me hours to locate this information.
If you want to use the 'index' operation in services, it takes only three parameters
page (the page number)
fields (the fields to include).
parameters (the actual parameters) - these are passed directly into the query, so these need to be node record field names.
eg:
/api/test/rest/node?fields=nid,title¶meters[type]=playlist&page=1
Performance Problems Using Services 7.x-3.2
Hello,
i'v startet to create a connection via services3 REST-Server to/from my php-driven website (at this time both my-site and drupal are on same machine).
I noticed that if i use/connect via services3 node.login enormous CPU usage about 30%-70%, normaly on my machine is between 0-10% (MAX).
i made different test with Apache Jmeter:
login/logout via normal drupal site(drupal form-login) cpu usage low, as expected
when i use http://drupal-site.tld/services_api/user/login (logout) the CPU usage increases by 30%-70% and that is too much!
Read moreHow to Upload images without Base64 encoding
In my android application , I can upload files to my Drupal 6 server using services module file resource in which I first Base64 encode the file and send it via a StringEntity as follows:
HttpClient httpClient = new DefaultHttpClient(connectionParameters);
HttpContext localContext = new BasicHttpContext();
JSONObject json = new JSONObject();
json.put("file", Base64.encodeToString(photodata,Base64.DEFAULT));
json.put("uid", getUid());
json.put("filename", file_name);
StringEntity se = new StringEntity(json.toString());
Read moreExternal Database connection Display results in Forms table as sortable pagination
<?php
/**
* @file
* This module is for core db search and send selected items via email.
*
* In this module, a user (registered) can search the url list and result will be displayed as list.
* The submitted data will be stored in custom table email_sents with user data , and emails will be sent.
*/
/**
* Menu for Endpoint
*
* Implementation of hook_menu().
*/
function my_module_menu() {
$items['my-module'] = array(
'title' => t('My Module'),
'description' => t('Search form'),
'page callback' => 'drupal_get_form',
Read more Specification for system resource set_variable, get_variable, del_variable using REST
I have been looking for a specification for using the variable setting actions of the system resource, but I haven't found anything. I am using Services 3.x and Drupal 7. Any suggestions or recommendations?
I'm SO close with Services (REST), just need the final pieces
So, I have finally (After much mucking about) got myself a drupal REST service running using 2-Legged OAuth for authentication. This is working, in that I can request http://drupalsite/myEndPoint/node to get a list of nodes, and http://drupalsite/myEndPoint/node/1 to get a particular node in XML or JSON format... and that's SO CLOSE to all I want.
Except...
Read morehelp with URL arguments to make REST server output taxonomy fields
Hi everyone,
I'm a bit of a beginner to the Services module. On my site, I have a view that displays taxonomy fields from specific terms, filtered by a term from another vocabulary. For example, I have a vocabulary of terms called "nightclubs" and a vocabulary called "neighborhoods" that's used to sort each nightclub. Each nightclub is associated with a neighborhood via a taxonomy field. My view shows me a list of terms (nightclubs) in whatever neighborhood term is passed through the contextual filter, and a few fields for each term (name, description, address, etc).
Read moreMobile4Social.com Privatemsg integration - free mobile app for your community
Hello all,
We are happy to release the new project by Mobile4Social.com - an integration between Android app and Drupal Privatemsg module.
Please take a look at the demo video of the application, install it and try it out to see the integration we offer.
Viewing a Rest end point logs me out of Drupal
Hello,
We're using Services with Service Views and Rest. When I visit the end point (domain.com/services/rest/tv) the data is displaying correctly but when I navigate to my other screen I find out I have been logged out of Drupal.
This error is displayed when I refresh Drupal:
Notice: Undefined index: rest_server in services_endpoint_callback() (line 196 of /vhosts/dev.worldviewweekend.com/html/sites/all/modules/contrib/services/services.module).
This happens every time I refresh the endpoint.
Any ideas?
Thanks





