The WebServiceEngine class / com.WebServiceEngine methods |
Get a handle for an incoming HTTP service request.
com.WebServiceEngine.GetHTTPServiceRequest( timeout INTEGER) RETURNING result com.HTTPServiceRequest
The com.WebServiceEngine.GetHTTPServiceRequest() class method returns a com.HTTPServiceRequest object to handle an incoming HTTP request, or NULL if there was no request during the given period of time.
The timeout parameter defines the time in seconds to wait for an incoming request. A value of -1 means infinite wait.
In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.
Any new call to this function will raise an error until the previous HTTP request was handled by sending a response back to the client, or destroyed.