Syntax 3: for ResourceResponse objects
Description
Gets the response body into a string.
Applies to
ResourceResponse objects
Syntax
|
1 |
objectname.GetBody ( string data ) |
|
1 |
objectname.GetBody ( blob data ) |
|
1 |
objectname.GetBody ( string data, encoding encodingType ) |
|
Argument |
Description |
|---|---|
|
objectname |
A reference to the ResourceResponse object in which you |
|
data |
A string or blob variable into which the function |
|
encodingType |
An encoding value specifying the data which is converted |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, the method returns null.
Examples
The following example shows the use of the GetBody function to get
the response body of string data type:
|
1 2 3 4 5 |
int li_return string ls_data ResourceResponse lnv_ResourceResponse li_return = lnv_ResourceResponse.getbody(ls_data) |
The following example shows the use of the GetBody function to get
the response body of string data type in encodingUTF8!:
|
1 2 3 4 5 |
int li_return string ls_data ResourceResponse lnv_ResourceResponse li_return = lnv_ResourceResponse.getbody(ls_data, encodingUTF8!) |
The following example shows the use of the GetBody function to get
the response body of blob data type:
|
1 2 3 4 5 |
int li_return blob lblb_data ResourceResponse lnv_ResourceResponse li_return = lnv_ResourceResponse.getbody(lblb_data) |
See also