Get the content of the REST response body.
Use this function when you want to get the request body as text content. Do not use this
method when saving the response as a binary attachment. If a RESTMessageV2 object called the
saveResponseBodyAsAttachment(...) function, using
getBody() on the associated RESTResponseV2 object will cause an error.
When saving the response as an attachment, if the outbound REST message fails, call
getErrorMessage() on the response to retrieve the body content.
Table 1. Parameters
Table 2. Returns
||The REST response body.
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.execute();
var responseBody = response.getBody();