REQUEST_RESULT (for a service)

This REQUEST_RESULT element specifies the number of seconds the GAS waits for the DVM to respond to pending transactions.

Syntax

<REQUEST_RESULT>seconds</REQUEST_RESULT>
  1. seconds specifies the number of seconds to wait for a response from a transaction request.

Child elements

There are no child elements.

Usage

You use the REQUEST_RESULT timeout to provide information to the user when a Web service transaction is taking longer than expected. It specifies the number of seconds to wait for the DVM to respond to the GAS, after which the GAS sends an HTTP 400 error page to the front-end to inform the user that the request has taken too long to fulfill.

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

Important: The REQUEST_RESULT timeout has an initial setting of 60 seconds. When configuring this setting, you must ensure it is less than the Common Gateway Interface (CGI) timeout of the web server you are using. See FastCGI Installation and Web Server Configuration.

Usage example for Web service

<REQUEST_RESULT>60</REQUEST_RESULT>

In this usage example, the REQUEST_RESULT timeout is set to 60 seconds. It is referenced by the GWS proxy to release the 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 the following: