Read SOAP response body from test case

I have a test case that uses WS.sendRequest to send a SOAP request. What I wanted to do was to look for error messages in the response, capture the text and output it to a spreadsheet. While I can use WS.getResponseStatusCode to extract the HTTP status code, I don’t see how I can return the response (body or complete envelope) from my script.