Changes between Version 99 and Version 100 of Expoze

Show
Ignore:
Timestamp:
12/02/08 23:20:37 (22 months ago)
Author:
larshelg (IP: 80.202.89.79)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Expoze

    v99 v100  
    117117 * 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.  
    118118 
    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 the request. 
     119The 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. 
    120120 
    121121==== 3.1.2 Response types ====