Returning a Value

The reply method in the JadeRestService class is called and is passed the string constructed from the value returned by the REST services method, if the method returns a value. The string is encoded according to the format requested by the client and sent to the client.

If you reimplement this method, you should always call inheritMethod to complete the processing.

If the method returns an object:

If the method returns a string that is already encoded in XML format (that is, starting with <?xml), the XML string is sent as it is, without further encoding.