Why you use Zend_Rest_Server
, I think you can make REST webservice without Zend using only symfony.
Here example:
About your question. I think that xml
return Zend_Rest_Server
. You can check question Make Zend_Rest_Server return JSON instead of XML using ZF, and try use answer. But in comment I read that Zend_Rest_Server is only working with XML. You can't decide the ouput format
. So, good luck!