REQUEST_RESULT (for a service)

Time out (in seconds) for pending transactions.

The Request Result timeout is used to inform the user when a Web service transaction is taking longer than expected. The REQUEST_RESULT element specifies the number of seconds to wait for the DVM to give an answer to the Application Server, after which the Application Server sends a HTTP 400 error page to the front-end to inform the user that the request has taken too long to fulfill.

The front-end client cannot recover from a HTTP 400 error page, and any Web service client application must send a new request.

Tip: The number of seconds specified for the REQUEST_RESULT timeout should be less that the cgi timeout. By default, the Apache Web server has the cgi timeout default of 300 seconds. If setting the REQUEST_RESULT timeout, it should be set to less than that, for example, at 60 seconds.

Usage example

<REQUEST_RESULT>60</REQUEST_RESULT>

In this usage example, the Request Result timeout is set to 60 seconds. It tells the GWS proxy to release DVM in charge of a service that has not responded in the given time frame.

Note: If Request Result timeout is not set (the default), the GWS proxy never releases the DVM and will wait until DVM responds to the request.

Parent elements

This element is a child of one of the following elements: