RESTMessageV2 - executeAsync()

Send the REST message to the endpoint asynchronously. The instance does not wait for a response from the web service provider when making asynchronous calls.

Table 1. Parameters
Name Type Description
Table 2. Returns
Type Description
RESTResponse The response returned by the REST provider.
var sm = new sn_ws.RESTMessageV2("Yahoo Finance","get"); //Might throw exception if message doesn't exist or not visible due to scope.
var response = sm.executeAsync(); //Might throw exception if http connection timed out or some issue with sending request itself because of encryption/decryption of password.
response.waitForResponse(60); // In seconds. Wait at most 60 seconds to get response from ECC Queue/Mid Server //Might throw exception timing out waiting for response in ECC queue.