Changes between Version 99 and Version 100 of Expoze
- Timestamp:
- 12/02/08 23:20:37 (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Expoze
v99 v100 117 117 * The ''responses'' section is optional and enables you to define different response output identified by a ''format''. The format is passed to the server as a HTTP parameter called "format", eg like !http://server.com/getPerson.service?format=json. 118 118 119 The important thing to understand is that all request elements can be overridden in a response definition. For instance, you can tell Expoze that a request with format ''json'' should use a different ''template'' and have a different ''contentType''. Other elements defined for the request, like ''bean'' and ''method'', will take effect. If no format is specified in the request or no response is defined for the format, Expoze will fall back to the elements defined for therequest.119 The important thing to understand is that all request elements can be overridden in a response definition. For instance, you can tell Expoze that a request with format ''json'' should override the default settings for ''template'' and ''contentType'' defined in the request root element. Other elements defined for the request, like ''bean'' and ''method'', will take effect. If no format is specified in the HTTP request or no response is defined for the specified format, Expoze will fall back to the elements defined for the root request. 120 120 121 121 ==== 3.1.2 Response types ====