Closed (fixed)
Project:
Services
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2008 at 18:48 UTC
Updated:
16 May 2008 at 23:52 UTC
The XMLRPC server included with services does not have a custom error handler, so all calls to services_error() simply return straight text messages. This makes error handling difficult on the client side. The attached patch adds xmlrpc_server_server_error($message) which returns an XMLRPC error to the client when services_error() is called and the XMLRPC server is being used. This code is stolen from blogapi, which has a similar function. It seems fine to me, but if anyone has any ideas for improvements let me know.
| Comment | File | Size | Author |
|---|---|---|---|
| xmlrpc_server_error.patch | 573 bytes | gdd |
Comments
Comment #1
gddsetting proper status, oops
Comment #2
heydere commentedThank you!
I've tested this patch (by cutting and pasting the code) and it works fine for me. The faultCode and faultString values are being sent properly and I can pick them up with my client code.
I didn't change the type but this seems more like a bug report than a feature request - the services module isn't obeying the standard XMLRPC fault procedures without this patch.
I'll be very happy once this gets committed!
Comment #3
marcingy commentedCommitted to drupal 5 and drupal 6.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.