@ExternalServiceRequest2::clearResponse

Clears any previously received response for this script object. This should be called before an external service request is resent to clear any response information.

Syntax:

@ExternalServiceRequest2::clearResponse()

Parameters:

None

Returns:

None

Example:

The following example illustrates the clearResponse method:

@serviceRequest::send()

# send first request

UNTIL($serviceRequest.completed, $timeout)

@external_response = @serviceRequest::getResponse()

# log results

@script::log($external_response.pingresult)

 

#clear old response

@serviceRequest::clearResponse()

 

#send second request

@serviceRequest::send()

UNTIL($serviceRequest.completed, $timeout)

@external_response = @serviceRequest::getResponse()

@script::log($external_response.pingresult)