androidxmljsondrupaldrupal-services

Services module to build a XML server to show on android app


I am doing something which seems to be a rocket science till now. I want to show the latest content of a Drupal website on an Android application. I just don't want to show the RSS feeds, but I want to also show the proper nodes and new users added so for that I would be needing a services module.

I have installed the services module but i still don't know how to use it.

I have done XML and JSON parsing, so I will be familiar with any of the server whichever is easy to make.


Solution

  • Well i have got mine working now. Atleast till system.connect still cant get node.get to work For making an android application for drupal we must have XMLRPCclient library in our application and following is the code for system.connect :-

    String url = "http://plumberc36.com/services/xmlrpc"; // String url = "http://10.0.2.2:8888"; XMLRPCClient server = new XMLRPCClient(url); try { HashMap response = (HashMap) server.call("system.connect"); String session = ((String)response.get("sessid")); Log.d("Response","" +session); }catch{ }

    if anybody knows how to node.get the XMLRPCclient then please share