ResponseBodyAsText
Structure
ResponseBodyAsText(sValue)
Parameters
| Parameter | Type | Description
| sValue | String | the message body of the response, as text |
Return Value
String
Description
Use this function to set a web response message body as text. Important: Set any headers (ResponseHeader) and set the status code (ResponseStatusCode) BEFORE you set the message body response using either ResponseBodyAsText or ResponseBodyAsFile. Note that this procedure will automatically set the 'content-type' header in the web response to 'text/plain'. You can overwrite this 'content-type' header using ResponseHeader, if desired.
Example
ResponseStatusCode(700)
ResponseBodyAsText("<?xml version=""1.0"" encoding=""UTF-8"" ?>" & Chr(13) &
"<Event>" & Chr(13) &
" <Result>SUCCESS</Result>" & Chr(13) &
" <Note>Event Created</Note>" & Chr(13) &
"</Event>")
Response |