Setting a time period for the response
To protect against remote server failure or unavailability, set a timeout value that indicates how long you are willing to wait for the server to respond to your request.
Use the SetOption()
method of the WebServiceEngine
class to
set the readwritetimeout option.
For example, to wait no more than 10
seconds:
CALL com.WebServiceEngine.SetOption( "readwritetimeout", 10 )
A timeout value of -1 means "wait forever". This is the default value.