function closeResponse() { $this->response .= '</response>'; $this->response = self::formatXmlString($this->response); parent::closeResponse(); }