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. The default timeout is 0 seconds.

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 the web service client application must send a new request.

A timeout duration set to zero seconds means that no timeout applies, and the GAS waits for the DVM to return a result.

Important:

When configuring this setting, you must ensure it is less than the Common Gateway Interface (CGI) timeout of the web server you are using.

Usage example

To set the REQUEST_RESULT in your web service configuration file (xcf), add a TIMEOUT element.
<APPLICATION Parent="ws.default">
   #...
   <TIMEOUT>
     <REQUEST_RESULT>90</REQUEST_RESULT>
   </TIMEOUT>
    #...
 </APPLICATION>

In this example, the timeout duration is 90 seconds. The GWS proxy waits 90 seconds before it frees up the DVM responsible for a service that has not responded in that time.

Parent elements

This element is a child of the following: