Define Xml Version In Returned Message


I have a Yii web service which is working properly. However, the response sent back does not include the following line at the top of the reply at the moment:

I guess that I have to define this somewhere for it to be returned? Can you please help out?

I guess that I should could use the “encoding” property of the CWebService class. However, I’m a using the CWebServiceAction class and that does not have this property.

I’ve tried with this:

but this only seems to set the value, not return it. How can I return the xml version and the encoding?