Changing the name of the xml field
cirotix - February 4, 2008 - 10:38
| Project: | REST Server |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Greetings:
currently when the service return several objects, the xml field of the objects returns is like :
blabla
blibli
etc...
It would be nice if we could choose the name of the filed to be used (which should be the same for all the objects of the same type).
For ex:
blabla
blibli
It might be already possible but I can't figure how.
damien

#1
To solve my problem (different name for the same type of object) I have hacked the Zend framework
Line 304 of library/Zend/Rest/Server.php
change:
<?php
$key = 'key_' . $key;
?>
into:
<?phpkey = 'key';
?>
but this is kind of ugly of course
#2
http://drupal.org/node/248459#comment-1327252 is patch that also fixes this issue in D5