Project Title:
To allow a Drupal website providing web services
Project Description:
Many people use Drupal for their content websites, e.g.: article repository, etc. Right now, Drupal only provides RSS for syndication (please correct me if I am wrong).
My plan is to build a module to enable Drupal to work as a web service server. The objective is to allow flexible content syndicate or integration. For simplicity, this module will provide services only through XML_RPC or REST.
It will allow users (most probably, developers?) to send a URL like http://RemoteSite/Drupal/MyModule/parameterA=xxx?parameterB=xxx?paramter... ...
The response will be a XML file, and can be processed by most programming language.
I have not decided how many parameters shall I support---I will discuss it with my mentor if my application is approved. However, the following five parameters will be supported anyway:
author
category
FromDate
ToDate
Keyword
Thanks

Comments
This actually already exists
This actually already exists in the Services module
http://drupal.org/project/services
It provides pluggable front ends (REST, XMLRPC, SOAP, etc) and whatever backend services you want. For instance there is a node service that returns full nodes.
I would love to see more coverage of core functionality in the services clients, but its hard for me to see it being a SoC project. They're really easy to write.
See also views_json. Agreed
See also views_json. Agreed that this is valuable functionality, but it also seems likely that anyone doing web services integration work will be capable of writing a small module that utilizes hook_xmlrpc() to serve exactly what they need.
Yes, covered by services -
Yes, covered by services - in fact services+json_server+view.Service.getView == views_json. The latter module could be deprecated AFIAK. I think a lot more Services work could be done to get full services coverage of Drupal core. RIght now the available services apis is pretty light. While in general they are easy to write - there is a lot of them - and adding simpletests would be a lot of effort too so I could see this as filling up a SOC project. I feel like the Services evangilist - I just happen to use it and think its cool but its come up on about 5 other SOC proposals - I think it should be included in at least one of them but these X students need to coordinate.
Dan DeGeest
Software Developer
Somewhere or Another
Thank you
Thank you for your feedback. I agree that provided the skeleton is already here, if it turns out to be a SOC project, much effort shall go with adding features and make it more robust, and reliable. I would like to work on this if I can get in.
You might want to check out
You might want to check out these Drupal core issues related to alternative methods of node rendering useful in part for web services:
http://drupal.org/node/134478
http://drupal.org/node/218830
http://drupal.org/node/193311
Thanks for feedback
Hi guys,
Thank for your inputs. I did not find existed projects you mentioned above. Great minds meet together :) I have not tried aforementioned modules,; I will give them a try later.
I am still interested in web services related projects, to make Drupal a better web service server.
Thanks,
Minghui
What shall I do next?
The status is "Student proposal - needs work"
What shall I do next to make it an official idea?
Thanks,
You should probably try out
You should probably try out Services module, see what's missing, then write up a proposal to fill in the gaps.
Probably worth trying to contact Rob Loach, the Services maintainer - http://drupal.org/user/61114 to get some more ideas.
Services
Hi! Yeah, what you outlined is already possible with the Services module and the REST Server. The REST server allows you to make requests like:
http://RemoteSite/Drupal/services/rest?method=xxx¶meterA=xxx¶meterB=xxx .......And retrieve an XML response. There are a lot of things wrong with the Services module though, so take a look at the issue queue and see what you come up with. OAuth support is something that was talked about at Drupalcon this year in Boston (hint hint).
Thanks
Hi Rob,
Thanks for information. It seems I can work towards improving Services module.