com.TCPRequest.getAsyncResponse

Returns the response after performing a TCP request, asynchronously.

Syntax

getAsyncResponse()
  RETURNING response com.TCPResponse

Usage

The getAsyncResponse() method returns a TCP response as a com.TCPResponse object, after a call to doRequest(), doXmlRequest(), doTextRequest(), or beginXmlRequest() / endXmlRequest() calls.

Unlike getResponse(), the getAsyncResponse() method does not stop the program flow: The method returns NULL if the response was not yet received.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.