The server code for RocReport