|
|||||
|
||||||
Related Topics | Other Library Functions |
function |
wsb.wait-for-request |
Library: Web Services Broker (OMWSB)
Import: omwsb.xmd |
Return type: wsb.request Returns: The next request for the program to process |
export external request function wait-for-request on value server server optional
Argument definitions
The wsb.wait-for-request
function provides both the service and server programs a method for getting the next available request object which the program is to handle. The function blocks while waiting for its next request to become available. On arrival of the next request, it is returned so that it can be processed by the waiting program.
In a service program, there is no available server and thus the optional parameter must not be specified.
In the server program, the parameter must be the server on which to wait for a request.
If the previously returned request (if any) has not had a response written to it, wsb.wait-for-request
will write an HTTP error to the client and close the connection.
Copyright © Stilo International plc, 1988-2010.