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.
@ExternalServiceRequest2::clearResponse()
None
None
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)