The HTTPResponse class / com.HTTPResponse methods |
Starts a streaming HTTP response.
beginXmlResponse() RETURNING writer xml.StaxWriter
The beginXmlResponse() method the streaming HTTP response and returns a xml.StaxReader object ready to read XML from the server.
The Content-Type header must be of the form */xml or */*+xml. For example: application/xhtml+xml.
In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.