Android、Drupal 和DrupalCloud 或 Android-xmlrpc 教程? [英] Android, Drupal & DrupalCloud or Android-xmlrpc tutorial?

查看:41
本文介绍了Android、Drupal 和DrupalCloud 或 Android-xmlrpc 教程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道上述任何一个的好教程?

Does anyone know of a good tutorial for any of the above?

我需要从 Android 手机向 Drupal 发送数据.

I need to send data to Drupal from and Android phone.

数据以 XML 格式存储,但可以轻松转换为 JSON.

Data is stored in XML but can be converted to JSON easily.

然后需要将其存储在用户的个人资料中.

Then it needs to be stored in a user's profile.

谢谢

推荐答案

DrupalCloud 无法正常工作的原因是我的 PHP 5.2.14 版本.

THe reason DrupalCloud wasn;t working was due to my version of PHP 5.2.14.

解决方案是将键值放在双引号中,因为这是 JSON 所期望的

The solution was to put the key values in double quotes as that is what JSON is expecting

bnvp[0] = new BasicNameValuePair("nid", "4"); 
bnvp[0] = new BasicNameValuePair("nid", ""4""); 

mPairs.add(new BasicNameValuePair("method", "system.connect")); 
mPairs.add(new BasicNameValuePair("method", ""system.connect"")); 

另外,请确保所有服务模块都已启用并设置了适当的权限.

Also, make sure all services modules are enable and the proper permissions are set.

这篇关于Android、Drupal 和DrupalCloud 或 Android-xmlrpc 教程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆